:root {
  --black: #0b0b0c;
  --ink: #1a1816;
  --white: #ffffff;
  --offwhite: #f7f3ec;
  --champagne: #d4b98c;
  --darkgold: #9c7a3c;
  --line: #e4dccb;
  --muted: #6b6255;
  --card: #ffffff;
  --radius: 2px;
  --maxw: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--offwhite);
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.7;
}
h1, h2, h3, .serif {
  font-family: "Cormorant Garamond", "Noto Serif TC", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--darkgold);
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--black);
  color: var(--offwhite);
  border-bottom: 1px solid #2a2a2a;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; height: 100%; }
.logo-icon { height: 46px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.3; }
.logo-text strong { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.15rem; letter-spacing: 0.06em; color: var(--champagne); white-space: nowrap; }
.logo-text small { font-size: 0.7rem; letter-spacing: 0.15em; color: #d8d2c4; margin-top: 2px; }
@media (max-width: 480px) { .logo-text strong { font-size: 0.85rem; } .logo-text small { font-size: 0.6rem; } }
.main-nav { display: flex; gap: 18px; align-items: center; flex-wrap: nowrap; }
.main-nav a { font-size: 0.8rem; letter-spacing: 0.03em; color: #d8d2c4; white-space: nowrap; }
.main-nav a:hover { color: var(--champagne); }
.lang-switch { border: 1px solid var(--champagne); color: var(--champagne) !important; padding: 5px 14px; border-radius: 20px; font-size: 0.72rem !important; letter-spacing: 0.08em !important; flex-shrink: 0; }
.lang-switch:hover { background: var(--champagne); color: var(--black) !important; }
@media (max-width: 1180px) { .main-nav { gap: 13px; } .main-nav a { font-size: 0.74rem; } }
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 1180px) {
  .main-nav { position: fixed; inset: 76px 0 0 0; background: var(--black); flex-direction: column; padding: 32px 24px; gap: 22px; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #0b0b0c 0%, #1c1a16 55%, #3a2f1c 100%);
  color: var(--white);
  padding: 110px 0 90px;
  text-align: center;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin: 18px 0 20px; color: var(--white); }
.hero p { color: #cfc7b8; max-width: 560px; margin: 0 auto 34px; }
.btn {
  display: inline-block;
  padding: 14px 38px;
  border: 1px solid var(--champagne);
  color: var(--champagne);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  border-radius: var(--radius);
  transition: all .2s ease;
}
.btn:hover { background: var(--champagne); color: var(--black); }
.btn-solid { background: var(--champagne); color: var(--black); border-color: var(--champagne); }
.btn-solid:hover { background: var(--darkgold); border-color: var(--darkgold); color: var(--white); }

/* Brand strip */
.brand-strip { background: var(--white); padding: 46px 0; border-bottom: 1px solid var(--line); }
.brand-strip .grid3 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
@media (max-width: 860px) { .brand-strip .grid3 { grid-template-columns: repeat(2,1fr); } }
.brand-card {
  border: 1px solid var(--line); padding: 30px 20px; text-align: center; transition: all .2s ease;
}
.brand-card:hover { border-color: var(--champagne); box-shadow: 0 6px 24px rgba(212,185,140,.25); }
.brand-card .name { font-family: "Cormorant Garamond", serif; font-size: 1.4rem; margin-bottom: 8px; }
.brand-card .tag { font-size: 0.78rem; color: var(--muted); }

/* Sections */
section { padding: 74px 0; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 44px; font-size: 0.92rem; }
.section-dark { background: var(--black); color: var(--offwhite); }
.section-dark .section-title { color: var(--white); }
.section-dark .section-sub { color: #b9b0a0; }

/* Product grid */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 70px; }
@media (max-width: 980px) { .pgrid { grid-template-columns: repeat(2,1fr); } }
.pcard { background: var(--card); border: 1px solid var(--line); transition: all .2s ease; }
.pcard:hover { border-color: var(--champagne); transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,.08); }
.pcard .thumb { aspect-ratio: 2/3; overflow: hidden; background: #fff; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: contain; }
.pcard .body { padding: 16px; }
.pcard .brand-tag { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--darkgold); text-transform: uppercase; }
.pcard .pname { font-size: 0.95rem; margin: 6px 0; min-height: 2.6em; }
.pcard .price { font-family: "Cormorant Garamond", serif; font-size: 1.2rem; color: var(--black); }
.badge-review { display: inline-block; font-size: 0.68rem; background: #f1e2c6; color: #7a5a20; padding: 2px 8px; border-radius: 10px; margin-top: 6px; }

/* Filter bar */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; align-items: center; }
.filter-bar select, .filter-bar input[type="search"] {
  padding: 10px 14px; border: 1px solid var(--line); background: var(--white); font-size: 0.85rem; border-radius: var(--radius);
}
.filter-bar input[type="search"] { flex: 1; min-width: 200px; }

/* Footer */
footer { background: var(--black); color: #c7bfae; padding: 60px 0 30px; margin-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
footer h4 { color: var(--champagne); font-size: 0.85rem; letter-spacing: 0.1em; margin-bottom: 14px; }
footer a { display: block; font-size: 0.85rem; margin-bottom: 8px; color: #c7bfae; }
footer a:hover { color: var(--champagne); }
.footer-bottom { border-top: 1px solid #2a2a2a; padding-top: 22px; text-align: center; font-size: 0.75rem; color: #8a8272; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); color: #fff; font-size: 28px;
}
.wa-float:hover { transform: scale(1.06); }

/* Breadcrumb */
.breadcrumb { font-size: 0.8rem; color: var(--muted); padding: 20px 0; }
.breadcrumb a:hover { color: var(--darkgold); }

/* Product detail */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
@media (max-width: 860px) { .pd-grid { grid-template-columns: 1fr; } }
.pd-gallery-main { background: #fff; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; max-height: 640px; }
.pd-gallery-main img { width: 100%; height: auto; max-height: 640px; object-fit: contain; }
.pd-thumbs { display: flex; gap: 10px; }
.pd-thumbs img { width: 70px; height: 70px; object-fit: cover; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.pd-thumbs img.active { border-color: var(--champagne); }
.pd-price { font-family: "Cormorant Garamond", serif; font-size: 2rem; margin: 14px 0; }
.pd-meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; }
.pd-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin: 40px 0 24px; }
.pd-tab { padding: 10px 0; cursor: pointer; font-size: 0.9rem; color: var(--muted); border-bottom: 2px solid transparent; }
.pd-tab.active { color: var(--black); border-color: var(--champagne); }
.pd-panel { display: none; white-space: pre-line; font-size: 0.92rem; color: #3a362f; }
.pd-panel.active { display: block; }
.review-notice { background: #fdf3e3; border: 1px solid #edd9a8; color: #7a5a20; padding: 16px 20px; font-size: 0.88rem; margin-bottom: 24px; border-radius: var(--radius); }

/* Generic content page */
.content-page h2 { margin-top: 40px; }
.content-page p { color: #3a362f; }

/* Shop: contact float, product actions, cart */
.wa-float { display: none; }
.contact-float { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.cf { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; border: 0; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .15s ease; }
.cf svg { width: 28px; height: 28px; }
.cf:hover { transform: scale(1.08); }
.cf.wa { background: #25D366; } .cf.wc { background: #07C160; } .cf.ln { background: #06C755; }
.pd-actions { margin: 18px 0 8px; display: grid; gap: 16px; }
.pd-buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.pd-buy .btn { margin: 0; cursor: pointer; }
.btn-buy { background: var(--black); border-color: var(--black); color: #fff; }
.btn-buy:hover { background: var(--darkgold); border-color: var(--darkgold); color: #fff; }
.qty { display: inline-flex; border: 1px solid var(--line); background: #fff; }
.qty button { width: 38px; border: 0; background: #fff; font-size: 1.1rem; cursor: pointer; }
.qty input { width: 46px; text-align: center; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 1rem; }
.pd-contact { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pd-contact .enq { color: var(--muted); font-size: .9rem; }
.pd-contact .slot { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.ct-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; color: #fff; border: 0; cursor: pointer; font-size: .9rem; font-family: inherit; }
.ct-btn svg { width: 20px; height: 20px; }
.ct-btn.wa { background: #25D366; } .ct-btn.wc { background: #07C160; } .ct-btn.ln { background: #06C755; }
.ct-btn:hover { filter: brightness(.93); }
.cart-link { position: relative; display: inline-flex; align-items: center; }
.cart-count { display: none; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: var(--champagne); color: #111; font-size: .7rem; align-items: center; justify-content: center; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: #111; color: #fff; padding: 11px 22px; border-radius: 6px; opacity: 0; transition: all .25s ease; z-index: 300; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.qr-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 400; display: flex; align-items: center; justify-content: center; padding: 20px; }
.qr-box { background: #fff; padding: 26px; max-width: 340px; width: 100%; text-align: center; position: relative; }
.qr-box img { width: 100%; height: auto; margin: 12px 0; }
.qr-x { position: absolute; right: 10px; top: 6px; border: 0; background: none; font-size: 1.8rem; cursor: pointer; }
.qr-title { font-weight: 700; } .qr-cap { color: var(--muted); font-size: .85rem; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.cart-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table .c-img img { width: 70px; height: 90px; object-fit: contain; }
.c-unit { color: var(--muted); font-size: .85rem; margin-top: 4px; }
.c-line { white-space: nowrap; font-weight: 600; }
.c-rm { border: 0; background: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.cart-total { text-align: right; font-size: 1.2rem; margin: 22px 0; } .c-note { color: var(--muted); font-size: .8rem; margin-top: 6px; }
.order-form { display: grid; gap: 14px; margin-top: 10px; }
.order-form input, .order-form textarea { padding: 12px; border: 1px solid var(--line); font-family: inherit; }
.c-thanks { padding: 30px; background: #fff; border: 1px solid var(--line); text-align: center; }
@media (max-width: 600px) { .cart-table .c-img { display: none; } .contact-float { right: 12px; bottom: 12px; } .cf { width: 48px; height: 48px; } }

.qr-open { display:inline-block; margin-top:10px; font-size:.85rem; color: var(--darkgold); text-decoration: underline; }

.brand-logo img { height: 56px; width: auto; max-width: 100%; object-fit: contain; filter: brightness(.55) contrast(1.15); }

.brand-card .name { display:flex; align-items:center; justify-content:center; min-height:70px; }
.bc-logo { height:64px; width:auto; max-width:90%; object-fit:contain; filter: brightness(.55) contrast(1.15); }

.order-form h3 { margin: 18px 0 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.opt input { margin-top: 4px; width: auto; padding: 0; }
.opt small { display: block; color: var(--muted); margin-top: 3px; }
.opt:has(input:checked) { border-color: var(--darkgold); background: #fbf7ee; }

.cart-layout, .chk-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.side-box { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 18px; display: grid; gap: 10px; }
.side-box h3 { margin: 0 0 4px; font-size: 1.1rem; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.side-box select, .side-box input:not([type=checkbox]):not([type=radio]), .side-box textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 4px; font-family: inherit; background: #fff; }
.side-box select:disabled { background: #f3f0ea; }
.fl { font-size: .88rem; color: #444; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.phone { display: grid; grid-template-columns: 100px 1fr; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.sum-row.total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 1.1rem; color: var(--darkgold); }
.pay-pick, .static { display: flex; justify-content: space-between; padding: 12px; border: 1px solid var(--line); border-radius: 4px; }
.pay-pick a, .static a { color: #2b4acb; font-size: .9rem; }
.sw, .chk { display: flex; gap: 10px; align-items: center; font-size: .92rem; }
.pay-modal { text-align: left; }
.pay-modal .opt { margin-bottom: 8px; border: 0; padding: 8px 4px; background: none; }
.chk-side { position: sticky; top: 90px; }
@media (max-width: 860px) { .cart-layout, .chk-layout { grid-template-columns: 1fr; } .two { grid-template-columns: 1fr; } .chk-side { position: static; } }

.req { color: #d12f2f; font-weight: 700; }

.brand-card { border: 0 !important; box-shadow: none !important; background: transparent; }
.brand-card:hover { box-shadow: none !important; transform: translateY(-2px); }
.bc-logo { height: 56px; }
.bc-dc { filter: none; height: 40px; }
.page-head { text-align: center; margin: 0 auto 36px; }
.page-head h1 { margin: 0; }
.head-logo { height: 110px; width: auto; max-width: 78%; margin: 0 auto; display: block; }
.head-logo[alt*="Dermal"] { height: 56px; }
@media (max-width: 600px) { .head-logo { height: 64px; } .head-logo[alt*="Dermal"] { height: 36px; } .bc-logo { height: 40px; } .bc-dc { height: 28px; } }

.brand-logo img.dc { height: 34px; filter: none; }

/* unified logo widths */
.head-logo, .head-logo[alt*="Dermal"] { height: auto !important; width: 210px; max-width: 70%; }
.brand-logo img, .brand-logo img.dc { height: auto !important; width: 130px; max-width: 100%; }
.bc-logo, .bc-dc { height: auto !important; width: 150px; max-width: 80%; }
@media (max-width: 600px) { .head-logo, .head-logo[alt*="Dermal"] { width: 150px; } .brand-logo img, .brand-logo img.dc { width: 110px; } .bc-logo, .bc-dc { width: 110px; } }
.brand-card .name { min-height: 100px; } @media (max-width: 600px) { .brand-card .name { min-height: 80px; } }

.head-logo { filter: brightness(.6) contrast(1.2); } .head-logo[alt*="Dermal"] { filter: none; }
