/* =========================================================
   ÉLAN · Beauty Official Website (design concept)
   Reference: Estée Lauder China official website
   ========================================================= */

:root {
  --ivory: #faf7f2;
  --cream: #f1eae1;
  --cream-deep: #e9dfd3;
  --espresso: #241b16;
  --espresso-soft: #2f251f;
  --gold: #b08d57;
  --gold-deep: #96733f;
  --ink: #241b16;
  --muted: #7d7369;
  --muted-light: #9b9187;
  --line: #e3dbd1;
  --white: #ffffff;
  --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5, p, blockquote { margin: 0; }

/* ---------- shared ---------- */

.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.eyebrow.light { color: #d9c3a2; }

.section {
  width: 100%;
  padding: 100px max(24px, calc((100% - 1320px) / 2));
}

.section-head.centered {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}

.section h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: .05em;
  line-height: 1.25;
}

.section-desc {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  letter-spacing: .03em;
}

/* ---------- announcement ---------- */

.announce {
  background: var(--espresso);
  color: #d8c9b6;
  text-align: center;
  padding: 10px 20px;
}
.announce p {
  font-size: 10px;
  letter-spacing: .2em;
  line-height: 1.6;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 max(24px, calc((100% - 1320px) / 2));
  height: 82px;
  background: rgba(250, 247, 242, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(36, 27, 22, .07);
}

.main-nav {
  display: flex;
  gap: 34px;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 26px;
}
.header-left .menu-btn { display: none; }

.site-header.is-scrolled {
  box-shadow: 0 12px 34px rgba(36, 27, 22, .06);
}
.main-nav a {
  position: relative;
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--ink);
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width .35s ease;
}
.main-nav a:hover::after { width: 100%; }

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.logo-main {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: .3em;
  line-height: 1;
  padding-left: .3em;
}
.logo-sub {
  font-size: 7px;
  letter-spacing: .42em;
  color: var(--muted-light);
  padding-left: .42em;
}

.header-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  transition: color .25s ease;
}
.icon-btn:hover { color: var(--gold-deep); }
.icon-btn svg { width: 19px; height: 19px; }
.cart-count {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-size: 8px;
  line-height: 15px;
  text-align: center;
  letter-spacing: 0;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  height: min(88vh, 860px);
  min-height: 640px;
  overflow: hidden;
  background: #17100c;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: brightness(.96);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 9, 6, .74) 0%, rgba(13, 9, 6, .36) 46%, rgba(13, 9, 6, .06) 74%),
    linear-gradient(0deg, rgba(13, 9, 6, .55) 0%, rgba(13, 9, 6, 0) 42%);
}
.hero-content {
  position: absolute;
  left: max(24px, calc((100% - 1320px) / 2));
  bottom: 17%;
  max-width: 860px;
  color: #fff;
  animation: rise 1s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 66px);
  font-weight: 400;
  letter-spacing: .06em;
  line-height: 1.16;
  margin-bottom: 24px;
  white-space: nowrap;
}
.hero-sub {
  font-size: 13px;
  line-height: 2.1;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 38px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 38px;
  font-size: 11px;
  letter-spacing: .22em;
  transition: all .3s ease;
}
.btn-gold {
  background: var(--gold);
  color: #fff;
  border: 1px solid var(--gold);
}
.btn-gold:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, .5);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .8);
}
.hero-scroll {
  position: absolute;
  right: max(24px, calc((100% - 1320px) / 2));
  bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .55);
}
.hero-scroll span {
  font-size: 8px;
  letter-spacing: .34em;
  writing-mode: vertical-rl;
}
.hero-scroll i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(rgba(255, 255, 255, .6), rgba(255, 255, 255, 0));
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- categories ---------- */

.categories { padding-top: 108px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.category-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.3s cubic-bezier(.2, .65, .2, 1);
}
.category-card:hover img { transform: scale(1.055); }

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 13, 9, .72) 0%, rgba(20, 13, 9, .18) 45%, rgba(20, 13, 9, 0) 68%);
  transition: opacity .4s ease;
}
.category-text {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.category-en {
  font-size: 9px;
  letter-spacing: .34em;
  color: rgba(255, 255, 255, .72);
}
.category-zh {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: .08em;
}
.category-desc {
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .7);
}
.category-link {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: .2em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.category-link b {
  font-weight: 400;
  transition: transform .35s ease;
}
.category-card:hover .category-link b { transform: translateX(6px); }

/* ---------- product sections ---------- */

.products { padding-top: 96px; padding-bottom: 96px; }
.products-alt { background: var(--cream); }

.products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 26px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.view-all {
  flex: none;
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--ink);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, color .3s ease;
}
.view-all span { margin-left: 6px; }
.view-all:hover { color: var(--gold-deep); border-color: var(--gold); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.product-card { position: relative; }

.product-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f3ece4;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.2, .65, .2, 1);
}
.product-card:hover .product-media img { transform: scale(1.045); }

.tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 11px;
  background: rgba(255, 255, 255, .93);
  color: #8a6a3f;
  font-size: 9px;
  letter-spacing: .16em;
}

.product-info { padding-top: 18px; }
.product-kind {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--muted-light);
  text-transform: uppercase;
}
.product-info h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .04em;
  margin: 7px 0 6px;
}
.product-info h3 a:hover { color: var(--gold-deep); }
.product-desc {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
}
.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}
.price {
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--ink);
}
.add-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #d8cec2;
  background: transparent;
  color: var(--espresso);
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: all .28s ease;
}
.add-btn:hover {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #fff;
}

/* ---------- quote ---------- */

.quote-band {
  background: var(--espresso);
  color: #f7f1e9;
  text-align: center;
  padding: 96px max(24px, calc((100% - 1320px) / 2));
}
.quote-band blockquote {
  font-family: var(--serif);
  font-size: clamp(28px, 3.3vw, 46px);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.62;
  margin: 0 auto;
  max-width: 900px;
}
.quote-sign {
  margin-top: 26px;
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--gold);
}

/* ---------- story ---------- */

.story {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 90px;
  align-items: center;
  width: 100%;
  padding: 112px max(24px, calc((100% - 1320px) / 2));
}
.story-text h2 { margin-bottom: 22px; }
.story-lead {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: .05em;
  color: var(--ink);
  margin-bottom: 22px;
}
.story-text > p:not(.eyebrow):not(.story-lead) {
  font-size: 13px;
  line-height: 2.1;
  color: var(--muted);
  margin-bottom: 16px;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: .18em;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--ink);
  transition: color .3s ease, border-color .3s ease;
}
.text-link span { transition: transform .3s ease; }
.text-link:hover { color: var(--gold-deep); border-color: var(--gold); }
.text-link:hover span { transform: translateX(5px); }

.story-media {
  position: relative;
  aspect-ratio: 4 / 5;
}
.story-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(176, 141, 87, .55);
}
.story-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
  padding: 46px max(24px, calc((100% - 1320px) / 2));
  background: #f5f0e9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.service svg {
  width: 28px;
  height: 28px;
  color: var(--gold-deep);
  margin-bottom: 12px;
}
.service h4 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  margin-bottom: 5px;
}
.service p {
  font-size: 11px;
  letter-spacing: .03em;
  color: var(--muted-light);
}

/* ---------- newsletter ---------- */

.newsletter {
  background: var(--espresso-soft);
  color: #f7f1e9;
  text-align: center;
  padding: 88px max(24px, calc((100% - 1320px) / 2));
}
.newsletter h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  letter-spacing: .07em;
}
.newsletter > p:not(.eyebrow) {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .04em;
  color: rgba(247, 241, 233, .58);
}
.subscribe {
  display: flex;
  max-width: 500px;
  margin: 30px auto 0;
}
.subscribe input {
  flex: 1;
  height: 50px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .26);
  border-right: 0;
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: .04em;
  outline: none;
}
.subscribe input::placeholder { color: rgba(255, 255, 255, .38); }
.subscribe input:focus { border-color: rgba(255, 255, 255, .55); }
.subscribe button {
  flex: none;
  height: 50px;
  padding: 0 30px;
  border: 0;
  background: var(--gold);
  color: #fff;
  font-size: 11px;
  letter-spacing: .18em;
  transition: background .3s ease;
}
.subscribe button:hover { background: var(--gold-deep); }

/* ---------- footer ---------- */

.site-footer {
  background: #1a1310;
  color: #c9bdaf;
  padding: 68px max(24px, calc((100% - 1320px) / 2)) 30px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.8fr repeat(4, 1fr);
  gap: 44px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.footer-brand .logo-main {
  font-size: 26px;
  color: #f5eee5;
  letter-spacing: .3em;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .06em;
  color: #8c7f73;
}
.footer-col h5 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  color: #f2eae0;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 2.3;
  color: #a2958a;
  transition: color .25s ease;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 10px;
  letter-spacing: .05em;
  color: #776b60;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .story { gap: 52px; }
  .footer-main { grid-template-columns: 1.5fr repeat(2, 1fr); row-gap: 40px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto 1fr; height: 72px; }
  .hero { min-height: 560px; }
  .hero-content { bottom: 12%; }
  .hero-content h1 { white-space: normal; font-size: clamp(36px, 7.6vw, 46px); }
  .category-grid { grid-template-columns: 1fr; }
  .category-card { aspect-ratio: 4 / 3.4; }
  .story { grid-template-columns: 1fr; gap: 56px; }
  .story-media { max-width: 520px; }
  .services { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .section { padding-top: 72px; padding-bottom: 72px; }
  .quote-band { padding-top: 72px; padding-bottom: 72px; }
}

@media (max-width: 600px) {
  .announce p { font-size: 9px; letter-spacing: .1em; }
  .logo-main { font-size: 24px; }
  .hero-content h1 { font-size: 40px; }
  .hero-sub br { display: none; }
  .hero-scroll { display: none; }
  .btn { height: 46px; padding: 0 26px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-media { aspect-ratio: 4 / 4.6; }
  .products-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .subscribe { flex-direction: column; }
  .subscribe input { border-right: 1px solid rgba(255, 255, 255, .26); border-bottom: 0; }
}

/* =========================================================
   Inner pages �� listing �� product detail �� story
   ========================================================= */

body.no-scroll { overflow: hidden; }

/* ---------- page hero ---------- */

.page-hero {
  position: relative;
  height: 440px;
  overflow: hidden;
  background: #17100c;
}
.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 10, 7, .72) 0%, rgba(15, 10, 7, .28) 55%, rgba(15, 10, 7, .12) 100%);
}
.page-hero-content {
  position: absolute;
  z-index: 2;
  left: max(24px, calc((100% - 1320px) / 2));
  bottom: 54px;
  max-width: 720px;
  color: #fff;
}
.page-hero-content .eyebrow { color: #d9c3a2; }
.page-hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 58px);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.2;
}
.page-hero-content p {
  max-width: 560px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: .03em;
  color: rgba(255, 255, 255, .74);
}
.breadcrumb {
  position: absolute;
  z-index: 2;
  top: 26px;
  left: max(24px, calc((100% - 1320px) / 2));
  display: flex;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .62);
}
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

/* ---------- listing ---------- */

.listing {
  padding: 60px max(24px, calc((100% - 1320px) / 2)) 100px;
}
.listing-intro {
  max-width: 740px;
  font-size: 13px;
  line-height: 2.05;
  letter-spacing: .03em;
  color: var(--muted);
  margin-bottom: 38px;
}
.listing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 22px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
}
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 9px 20px;
  border: 1px solid #d9cfc3;
  background: transparent;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  transition: all .25s ease;
}
.filter-chip:hover { border-color: var(--espresso); color: var(--ink); }
.filter-chip.is-active {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #fff;
}
.listing-count {
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted-light);
}

/* ---------- product detail ---------- */

.product-detail {
  padding: 42px max(24px, calc((100% - 1320px) / 2)) 92px;
}
.breadcrumb-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
}
.breadcrumb-line a:hover { color: var(--gold-deep); }
.breadcrumb-line span { color: var(--muted-light); }
.breadcrumb-line em { font-style: normal; color: var(--ink); }

.detail-grid {
  display: grid;
  grid-template-columns: 1.03fr 1fr;
  gap: 64px;
  align-items: start;
}
.detail-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #f1eae1;
}
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-info { padding-top: 4px; }
.detail-info .eyebrow { margin-bottom: 12px; }
.detail-info h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 400;
  letter-spacing: .05em;
  line-height: 1.2;
}
.detail-en {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .14em;
  color: var(--muted-light);
}
.detail-price {
  margin: 22px 0;
  font-size: 22px;
  letter-spacing: .05em;
}
.detail-price span {
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}
.detail-desc {
  max-width: 540px;
  margin-bottom: 26px;
  font-size: 13px;
  line-height: 2.05;
  letter-spacing: .02em;
  color: var(--muted);
}
.detail-size {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
}
.size-chip {
  padding: 9px 20px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 12px;
  letter-spacing: .06em;
}
.size-chip.is-active { border-color: var(--espresso); color: var(--ink); }
.detail-buy {
  display: flex;
  gap: 12px;
  margin-bottom: 26px;
}
.qty {
  display: flex;
  align-items: center;
  height: 50px;
  border: 1px solid var(--line);
}
.qty button {
  width: 42px;
  height: 100%;
  border: 0;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
}
.qty span {
  min-width: 34px;
  text-align: center;
  font-size: 13px;
}
.detail-add { flex: 1; }
.detail-services {
  display: grid;
  gap: 10px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
}
.detail-services li::before {
  content: "��";
  margin-right: 10px;
  color: var(--gold);
}

.accordion { border-top: 1px solid var(--line); }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border: 0;
  background: transparent;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink);
  text-align: left;
}
.accordion-btn span {
  font-size: 14px;
  color: var(--muted);
  transition: transform .3s ease;
}
.accordion-item.is-open .accordion-btn span { transform: rotate(45deg); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  font-size: 12px;
  line-height: 2;
  color: var(--muted);
}
.accordion-item.is-open .accordion-panel {
  max-height: 240px;
  padding-bottom: 16px;
}

.related {
  padding: 0 max(24px, calc((100% - 1320px) / 2)) 100px;
}
.related-head {
  padding-top: 38px;
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
}
.related-head h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: .05em;
}
.related .product-grid { grid-template-columns: repeat(3, 1fr); }

/* ---------- story page ---------- */

.story-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 84px;
  align-items: center;
  padding: 100px max(24px, calc((100% - 1320px) / 2));
}
.story-intro h2 { margin-bottom: 22px; }
.story-intro .story-lead {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: .05em;
  color: var(--ink);
  margin-bottom: 20px;
}
.story-intro p:not(.eyebrow):not(.story-lead) {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 2.1;
  color: var(--muted);
}
.story-intro-media {
  position: relative;
  aspect-ratio: 4 / 5;
}
.story-intro-media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 1px solid rgba(176, 141, 87, .5);
}
.story-intro-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline { padding: 0 max(24px, calc((100% - 1320px) / 2)) 100px; }
.timeline-head {
  max-width: 620px;
  margin-bottom: 40px;
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.timeline-item h3 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 400;
  letter-spacing: .02em;
  color: var(--gold-deep);
}
.timeline-item h4 {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
}
.timeline-item p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding: 0 max(24px, calc((100% - 1320px) / 2)) 100px;
}
.value-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.value-card h3 {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .04em;
}
.value-card p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}

/* =========================================================
   Shared overlays �� cart �� search �� menu �� toast
   ========================================================= */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 14, 10, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100%;
  background: var(--ivory);
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.cart-drawer.is-open { transform: translateX(0); }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .08em;
}
.cart-head h3 span {
  margin-left: 6px;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
}
.panel-close {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}
.panel-close-text {
  border: 0;
  background: transparent;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 26px;
}
.cart-empty {
  padding: 64px 0;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.cart-empty .text-link { margin-top: 18px; }
.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  background: #f1eae1;
}
.cart-item h4 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
}
.cart-item p {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.cart-item .cart-price {
  font-size: 12px;
  letter-spacing: .02em;
  text-align: right;
}
.cart-qty {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  border: 1px solid var(--line);
}
.cart-qty button {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  font-size: 12px;
}
.cart-qty span {
  min-width: 26px;
  text-align: center;
  font-size: 11px;
}
.cart-remove {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted-light);
  text-decoration: underline;
}
.cart-foot {
  padding: 22px 26px 26px;
  border-top: 1px solid var(--line);
  background: #f5efe7;
}
.cart-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
}
.cart-total b {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}
.cart-note {
  margin: 8px 0 16px;
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--muted);
}
.cart-checkout { width: 100%; }

.search-panel {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(250, 247, 242, .98);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.search-panel.is-open { opacity: 1; visibility: visible; }
.search-inner {
  width: min(780px, calc(100% - 48px));
  margin: 12vh auto 0;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
}
.search-bar svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--muted);
}
.search-bar input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 18px;
  letter-spacing: .04em;
  color: var(--ink);
  outline: none;
}
.search-results {
  max-height: 56vh;
  overflow-y: auto;
  margin-top: 26px;
}
.search-hint {
  padding: 8px 10px;
  font-size: 12px;
  color: var(--muted);
}
.search-result {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  transition: background .2s ease;
}
.search-result:hover { background: #f1eae1; }
.search-result img {
  width: 54px;
  height: 68px;
  object-fit: cover;
  background: #f1eae1;
}
.search-result h4 {
  font-size: 13px;
  font-weight: 500;
}
.search-result p {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}
.search-result .price {
  margin-left: auto;
  font-size: 12px;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  display: flex;
  flex-direction: column;
  background: var(--ivory);
  transform: translateY(-100%);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.mobile-menu nav a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: .06em;
}
.mobile-menu nav small {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .24em;
  color: var(--muted-light);
}
.mobile-menu-foot {
  margin-top: auto;
  padding: 24px;
  font-size: 11px;
  line-height: 2;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 120;
  padding: 12px 24px;
  background: var(--espresso);
  color: #fff;
  font-size: 12px;
  letter-spacing: .06em;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: all .3s ease;
}
.toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---------- inner page responsive ---------- */

@media (max-width: 1080px) {
  .detail-grid { gap: 44px; }
  .story-intro { gap: 52px; }
  .related .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .header-left .menu-btn { display: grid; }
  .header-left { gap: 0; }
  .page-hero { height: 360px; }
  .page-hero-content { bottom: 40px; }
  .detail-grid { grid-template-columns: 1fr; gap: 34px; }
  .detail-info { padding-top: 0; }
  .story-intro { grid-template-columns: 1fr; gap: 56px; }
  .story-intro-media { max-width: 520px; }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
  .values { grid-template-columns: 1fr; }
  .related .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .page-hero { height: 320px; }
  .page-hero-content h1 { font-size: 34px; }
  .page-hero-content p { font-size: 12px; }
  .listing { padding-top: 40px; padding-bottom: 70px; }
  .filter-chip { padding: 8px 14px; }
  .detail-buy { flex-wrap: wrap; }
  .detail-add { width: 100%; }
  .related .product-grid { grid-template-columns: 1fr; }
  .timeline-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .toast { white-space: normal; width: calc(100% - 40px); text-align: center; }
}

.page-hero img.hero-focus-top { object-position: center top; }
