:root {
  --customer-ivory: #f7f4ee;
  --customer-paper: #fffdfa;
  --customer-ink: #242421;
  --customer-muted: #777269;
  --customer-line: rgba(36, 36, 33, .12);
  --customer-copper: #ad8755;
  --customer-copper-soft: #eee2d0;
  --customer-green: #19765f;
  --customer-danger: #a44b43;
  --customer-shadow: 0 22px 65px rgba(37, 34, 29, .08);
}

[hidden] { display: none !important; }

.site-header--public .nav-shell { position: relative; }
.site-header--public .site-nav a[aria-current="page"] { color: #fff; }
.site-header--public .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  background: rgba(255,255,255,.05);
  color: #fff;
  cursor: pointer;
}
.customer-account-link,
.customer-logout-link {
  min-width: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 0 13px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.04);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.customer-account-link [data-customer-label] { min-width: 0; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-account-link:hover,
.customer-logout-link:hover,
.customer-account-link:focus-visible,
.customer-logout-link:focus-visible { border-color: rgba(183,154,107,.65); color: #fff; background: rgba(183,154,107,.14); }
.customer-avatar {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #292825;
  background: linear-gradient(145deg, #d9b67f, #f1dfbf);
  font-size: .75rem;
  font-weight: 900;
}
.favorite-nav-link { position: relative; }
.nav-count {
  position: absolute;
  top: -3px;
  left: -2px;
  min-width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border-radius: 99px;
  background: var(--customer-copper);
  color: #fff;
  font-size: .58rem;
  line-height: 1;
}
.customer-toast {
  position: fixed;
  z-index: 100;
  left: 24px;
  bottom: 24px;
  max-width: min(380px, calc(100% - 48px));
  padding: 13px 16px;
  border: 1px solid var(--customer-line);
  border-radius: 14px;
  background: var(--customer-ink);
  color: #fff;
  box-shadow: 0 15px 36px rgba(0,0,0,.2);
  font-size: .82rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.customer-toast.is-visible { opacity: 1; transform: translateY(0); }
.customer-toast[data-tone="error"] { background: var(--customer-danger); }
.customer-toast[data-tone="success"] { background: var(--customer-green); }

.customer-auth-page,
.account-page { background: var(--customer-ivory); color: var(--customer-ink); }
.customer-auth-page { min-height: 100vh; }
.customer-auth-wrap {
  width: min(1160px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 38px 0;
  display: grid;
  place-items: center;
}
.auth-page-top {
  width: 100%;
  margin-bottom: 14px;
  text-align: right;
}
.auth-page-top a {
  color: var(--customer-muted);
  font-size: .78rem;
  font-weight: 800;
}
.auth-page-top a:hover { color: var(--customer-copper); }
.customer-auth-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(390px, .72fr);
  direction: ltr;
  overflow: hidden;
  border: 1px solid var(--customer-line);
  border-radius: 30px;
  background: var(--customer-paper);
  box-shadow: var(--customer-shadow);
}
.auth-editorial,
.auth-panel { direction: rtl; }
.auth-editorial {
  position: relative;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 6vw, 70px);
  overflow: hidden;
  background: #262824;
  color: #fff;
}
.auth-editorial::before,
.auth-editorial::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.auth-editorial::before { width: 430px; height: 430px; left: -190px; top: -170px; border: 1px solid rgba(207,174,122,.35); box-shadow: 0 0 0 30px rgba(207,174,122,.04), 0 0 0 70px rgba(207,174,122,.03); }
.auth-editorial::after { width: 240px; height: 240px; right: -100px; bottom: -110px; background: radial-gradient(circle, rgba(190,151,91,.25), transparent 68%); }
.auth-mark { position: relative; z-index: 1; display: flex; align-items: center; gap: 13px; }
.auth-mark-badge { width: 53px; height: 53px; display: grid; place-items: center; border: 1px solid rgba(207,174,122,.5); border-radius: 17px; color: #f7ead6; font-weight: 900; letter-spacing: -.12em; }
.auth-mark strong { display: block; font-size: .98rem; letter-spacing: .1em; }
.auth-mark small { display: block; margin-top: 3px; color: rgba(255,255,255,.5); font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; }
.auth-editorial-copy { position: relative; z-index: 1; max-width: 430px; }
.auth-editorial-copy .eyebrow { color: #e0c59b; background: rgba(207,174,122,.1); border-color: rgba(207,174,122,.28); }
.auth-editorial-copy h1 { margin: 22px 0 15px; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.18; letter-spacing: -.05em; }
.auth-editorial-copy p { max-width: 370px; margin: 0; color: rgba(255,255,255,.67); line-height: 2; }
.auth-editorial-note { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.6); font-size: .76rem; }
.auth-editorial-note span { width: 8px; height: 8px; border-radius: 50%; background: #74b39d; box-shadow: 0 0 0 5px rgba(116,179,157,.12); }
.auth-panel { padding: clamp(30px, 5vw, 60px); background: var(--customer-paper); }
.auth-panel-head { margin-bottom: 25px; }
.auth-panel-head h2 { margin: 12px 0 8px; font-size: 1.75rem; letter-spacing: -.04em; }
.auth-panel-head p { margin: 0; color: var(--customer-muted); font-size: .86rem; }
.auth-switcher { display: flex; gap: 5px; margin-bottom: 25px; padding: 5px; border: 1px solid var(--customer-line); border-radius: 14px; background: #f3efe7; }
.auth-switcher button { flex: 1; border: 0; border-radius: 10px; padding: 10px; background: transparent; color: var(--customer-muted); cursor: pointer; font-weight: 800; }
.auth-switcher button.is-active { background: #fff; color: var(--customer-ink); box-shadow: 0 5px 12px rgba(36,36,33,.08); }
.auth-form { display: grid; gap: 15px; }
.auth-field { display: grid; gap: 7px; min-width: 0; color: var(--customer-ink); font-size: .78rem; font-weight: 800; }
.auth-field input,
.account-form input,
.account-form textarea,
.account-form select {
  width: 100%;
  border: 1px solid #dcd5c9;
  border-radius: 12px;
  background: #fff;
  color: var(--customer-ink);
  padding: 12px 13px;
  outline: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.auth-field input { min-height: 48px; }
.auth-field input:focus,
.account-form input:focus,
.account-form textarea:focus,
.account-form select:focus { border-color: var(--customer-copper); box-shadow: 0 0 0 4px rgba(173,135,85,.14); }
.auth-field input[dir="ltr"] { text-align: left; }
.auth-password-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-password-meta button { border: 0; padding: 0; background: transparent; color: var(--customer-copper); font-size: .72rem; font-weight: 800; cursor: pointer; }
.auth-helper { margin: -3px 0 1px; color: var(--customer-muted); font-size: .7rem; }
.auth-message { min-height: 22px; margin: 0; color: var(--customer-danger); font-size: .78rem; font-weight: 700; }
.auth-message[data-tone="success"] { color: var(--customer-green); }
.auth-submit,
.account-submit {
  min-height: 49px;
  border: 1px solid var(--customer-ink);
  border-radius: 12px;
  background: var(--customer-ink);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 13px 25px rgba(36,36,33,.16);
  transition: transform .2s ease, background .2s ease;
}
.auth-submit:hover,
.account-submit:hover { background: #3a3a34; transform: translateY(-1px); }
.auth-submit:disabled,
.account-submit:disabled { opacity: .65; cursor: wait; transform: none; }
.auth-footnote { margin: 20px 0 0; color: var(--customer-muted); font-size: .7rem; line-height: 1.9; }
.auth-footnote a { color: var(--customer-copper); font-weight: 800; text-decoration: underline; }

.account-page { min-height: 100vh; }
.account-shell { width: min(1240px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 80px; }
.account-welcome { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.account-welcome h1 { margin: 12px 0 5px; font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.2; letter-spacing: -.05em; }
.account-welcome p { margin: 0; color: var(--customer-muted); }
.account-welcome-actions { display: flex; gap: 10px; }
.account-outline-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 15px; border: 1px solid var(--customer-line); border-radius: 10px; color: var(--customer-ink); font-size: .76rem; font-weight: 800; }
.account-outline-link:hover { border-color: var(--customer-copper); color: var(--customer-copper); }
.account-layout { display: grid; grid-template-columns: minmax(235px, 280px) minmax(0, 1fr); align-items: start; gap: 24px; }
.account-rail { position: sticky; top: 25px; display: grid; gap: 15px; }
.account-identity { padding: 22px; border: 1px solid var(--customer-line); border-radius: 22px; background: var(--customer-ink); color: #fff; box-shadow: 0 18px 35px rgba(36,36,33,.14); }
.account-monogram { width: 65px; height: 65px; display: grid; place-items: center; border-radius: 21px; background: linear-gradient(145deg, #d8af75, #f0dcc0 58%, #b77f4c); color: #2f2b26; font-size: 1.65rem; font-weight: 900; box-shadow: inset 0 1px rgba(255,255,255,.55); }
.account-identity h2 { margin: 17px 0 2px; font-size: 1.1rem; }
.account-identity p { max-width: 100%; margin: 0; color: rgba(255,255,255,.7); font-size: .72rem; direction: ltr; text-align: right; overflow-wrap: anywhere; word-break: break-word; }
.account-status { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.78); font-size: .72rem; }
.account-status i { width: 8px; height: 8px; border-radius: 50%; background: #79bba4; box-shadow: 0 0 0 5px rgba(121,187,164,.12); }
.account-nav { display: grid; gap: 4px; padding: 9px; border: 1px solid var(--customer-line); border-radius: 19px; background: rgba(255,255,255,.58); }
.account-nav button { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 11px; padding: 12px 13px; background: transparent; color: var(--customer-muted); text-align: right; cursor: pointer; font-size: .77rem; font-weight: 800; }
.account-nav button span:first-child { width: 25px; color: var(--customer-copper); font-size: 1rem; text-align: center; }
.account-nav button:hover,
.account-nav button.is-active { background: #fff; color: var(--customer-ink); box-shadow: 0 4px 12px rgba(36,36,33,.05); }
.account-nav button.is-active { border-right: 3px solid var(--customer-copper); }
.account-main { min-width: 0; }
.account-section { display: none; animation: account-fade .25s ease both; }
.account-section.is-active { display: block; }
@keyframes account-fade { from { opacity: .1; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.account-section-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.account-section-head h2 { margin: 0 0 5px; font-size: 1.55rem; letter-spacing: -.04em; }
.account-section-head p { margin: 0; color: var(--customer-muted); font-size: .82rem; }
.account-card { border: 1px solid var(--customer-line); border-radius: 20px; background: var(--customer-paper); box-shadow: 0 12px 35px rgba(36,36,33,.04); }
.account-overview-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 17px; }
.overview-feature { position: relative; min-height: 220px; padding: 27px; overflow: hidden; border-radius: 20px; background: linear-gradient(135deg, #eee5d7, #fffdf9 65%); }
.overview-feature::after { content: ""; position: absolute; width: 210px; height: 210px; left: -75px; bottom: -95px; border: 1px solid rgba(173,135,85,.35); border-radius: 50%; box-shadow: 0 0 0 20px rgba(173,135,85,.04), 0 0 0 42px rgba(173,135,85,.035); }
.overview-feature small { color: var(--customer-copper); font-weight: 900; }
.overview-feature h3 { max-width: 450px; margin: 18px 0 8px; font-size: clamp(1.25rem, 3vw, 2rem); line-height: 1.35; letter-spacing: -.04em; }
.overview-feature p { max-width: 450px; margin: 0; color: var(--customer-muted); font-size: .82rem; }
.overview-stats { display: grid; gap: 17px; }
.mini-stat { padding: 21px; }
.mini-stat span { display: block; color: var(--customer-muted); font-size: .74rem; }
.mini-stat strong { display: block; margin-top: 10px; color: var(--customer-ink); font-size: 1.5rem; }
.mini-stat em { display: block; margin-top: 4px; color: var(--customer-green); font-size: .7rem; font-style: normal; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 17px; }
.quick-action { min-height: 104px; padding: 17px; border: 1px solid var(--customer-line); border-radius: 16px; background: #fff; color: var(--customer-ink); text-align: right; cursor: pointer; transition: .2s ease; }
.quick-action { display: block; width: 100%; text-decoration: none; }
.quick-action:hover { border-color: var(--customer-copper); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(36,36,33,.06); }
.quick-action b { display: block; margin-top: 15px; font-size: .78rem; }
.quick-action small { color: var(--customer-muted); font-size: .68rem; }
.account-form { display: grid; gap: 17px; padding: 25px; }
.account-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.account-form label { display: grid; gap: 7px; color: var(--customer-ink); font-size: .76rem; font-weight: 800; }
.account-form textarea { min-height: 110px; resize: vertical; }
.account-form input[readonly] { color: var(--customer-muted); background: #f5f1eb; cursor: not-allowed; }
.account-form-note { margin: -4px 0 0; color: var(--customer-muted); font-size: .7rem; }
.account-submit { width: max-content; min-width: 150px; padding: 0 20px; }
.favorites-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.favorite-card { position: relative; overflow: hidden; border: 1px solid var(--customer-line); border-radius: 18px; background: #fff; }
.favorite-card-visual { height: 130px; background: linear-gradient(135deg, #e2d1b7, #faf7f1, #d2c4b2); }
.favorite-card-visual img { width: 100%; height: 100%; object-fit: cover; }
.favorite-card-body { padding: 15px; }
.favorite-card-body h3 { margin: 0 0 9px; font-size: .87rem; line-height: 1.7; }
.favorite-card-body p { margin: 0; color: var(--customer-copper); font-size: .76rem; font-weight: 900; }
.favorite-card-actions { display: flex; align-items: center; gap: 9px; margin-top: 13px; }
.favorite-card-actions .account-outline-link { min-height: 34px; padding: 7px 10px; font-size: .66rem; }
.favorite-remove { position: absolute; top: 9px; left: 9px; width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(36,36,33,.74); color: #fff; cursor: pointer; }
.account-empty { display: grid; place-items: center; min-height: 260px; padding: 30px; border: 1px dashed #cfc5b8; border-radius: 18px; background: rgba(255,255,255,.48); text-align: center; }
.account-empty-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; background: var(--customer-copper-soft); color: var(--customer-copper); font-size: 1.3rem; }
.account-empty h3 { margin: 14px 0 4px; font-size: 1rem; }
.account-empty p { max-width: 400px; margin: 0; color: var(--customer-muted); font-size: .78rem; line-height: 1.9; }
.account-notice { min-height: 22px; margin: 0 0 15px; color: var(--customer-green); font-size: .78rem; font-weight: 800; }
.account-notice[data-tone="error"] { color: var(--customer-danger); }
.account-service-error h2 { margin: 14px 0 4px; font-size: 1.1rem; }

.customer-auth-page button:focus-visible,
.account-page button:focus-visible,
.site-header--public a:focus-visible,
.site-header--public button:focus-visible,
.customer-auth-page input:focus-visible,
.account-page input:focus-visible,
.account-page textarea:focus-visible,
.account-page select:focus-visible { outline: 3px solid rgba(173,135,85,.55); outline-offset: 3px; }

.product-favorite {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36,36,33,.11);
  border-radius: 50%;
  background: rgba(255,255,255,.88);
  color: var(--customer-ink);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: .2s ease;
}
.product-card { position: relative; }
.product-favorite:hover,
.product-favorite[aria-pressed="true"] { color: #a44b43; border-color: rgba(164,75,67,.35); background: #fff4f1; }
.product-favorite[aria-pressed="true"] span { transform: scale(1.08); }
.product-favorite span { transition: transform .2s ease; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 980px) {
  .site-header--public .nav-shell { grid-template-columns: auto 1fr auto; }
  .site-header--public .site-nav { gap: .75rem; }
  .site-header--public .nav-actions { gap: 6px; }
  .customer-auth-shell { grid-template-columns: 1fr; max-width: 620px; }
  .auth-editorial { min-height: 330px; }
  .auth-editorial-copy h1 { font-size: 2.35rem; }
  .auth-editorial-note { margin-top: 50px; }
  .account-overview-grid { grid-template-columns: 1fr; }
  .overview-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .site-header--public .nav-shell { grid-template-columns: 1fr auto; padding-top: 13px; padding-bottom: 13px; }
  .site-header--public .brand-block { justify-self: start; }
  .site-header--public .brand-mark { width: 49px; height: 49px; border-radius: 15px; }
  .site-header--public .brand-mark span { font-size: 1.35rem; }
  .site-header--public .logo-title { font-size: .88rem; }
  .site-header--public .logo-sub { font-size: .5rem; }
  .mobile-nav-toggle { display: grid; place-items: center; justify-self: end; }
  .site-header--public .site-nav { grid-column: 1 / -1; width: 100%; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px; border-radius: 16px; }
  .site-header--public .site-nav.is-open { display: flex; }
  .site-header--public .site-nav a { padding: 11px 13px; border-radius: 9px; }
  .site-header--public .site-nav a::after { display: none; }
  .site-header--public .site-nav a:hover,
  .site-header--public .site-nav a[aria-current="page"] { background: rgba(183,154,107,.14); }
  .site-header--public .nav-actions { grid-column: 1 / -1; justify-self: stretch; display: grid; grid-template-columns: auto 1fr auto; }
  .site-header--public .nav-actions .favorite-nav-link { justify-self: start; }
  .site-header--public .customer-account-link { justify-self: center; }
  .customer-account-link [data-customer-label] { max-width: 120px; }
  .site-header--public .nav-cta { justify-self: end; padding: 0 11px; font-size: .68rem; }
  .top-strip-inner { min-height: 32px; gap: 7px; overflow: hidden; white-space: nowrap; }
  .top-strip-inner span { max-width: 33%; overflow: hidden; text-overflow: ellipsis; }
  .customer-auth-wrap { width: min(100% - 20px, 620px); padding: 10px 0; }
  .auth-editorial { min-height: 275px; padding: 28px; }
  .auth-editorial-copy h1 { margin-top: 16px; font-size: 2rem; }
  .auth-editorial-copy p { font-size: .78rem; }
  .auth-editorial-note { margin-top: 25px; }
  .auth-panel { padding: 28px 22px; }
  .account-shell { width: min(100% - 20px, 620px); padding-top: 28px; }
  .account-welcome { display: block; }
  .account-welcome-actions { margin-top: 16px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-rail { position: static; }
  .account-identity { display: grid; grid-template-columns: auto 1fr; column-gap: 15px; align-items: center; }
  .account-identity h2 { margin-top: 0; }
  .account-status { grid-column: 1 / -1; }
  .account-nav { display: flex; overflow-x: auto; padding: 5px; }
  .account-nav button { min-width: max-content; padding: 10px 11px; }
  .account-nav button.is-active { border-right: 0; border-bottom: 3px solid var(--customer-copper); }
  .quick-actions,
  .favorites-grid { grid-template-columns: 1fr; }
  .overview-stats { grid-template-columns: 1fr 1fr; }
  .account-form { padding: 18px; }
  .account-form-grid { grid-template-columns: 1fr; }
  .account-section-head { display: block; }
}

@media (min-width: 721px) and (max-width: 820px) {
  .site-header--public .nav-shell { grid-template-columns: auto auto minmax(0, 1fr); gap: 12px; }
  .site-header--public .mobile-nav-toggle { display: grid; place-items: center; justify-self: center; }
  .site-header--public .site-nav { display: none; }
  .site-header--public .site-nav.is-open {
    grid-column: 1 / -1; width: 100%; display: flex; flex-direction: column;
    align-items: stretch; gap: 2px; padding: 8px; border-radius: 16px;
  }
  .site-header--public .site-nav.is-open a { padding: 9px 12px; border-radius: 9px; }
  .site-header--public .site-nav.is-open a::after { display: none; }
  .site-header--public .nav-actions { grid-column: 3; grid-row: 1; justify-self: end; gap: 6px; }
  .site-header--public .nav-cta { min-height: 38px; padding: 0 11px; font-size: .68rem; }
  .site-header--public .customer-account-link { padding-inline: 9px; }
  .site-header--public .customer-account-link [data-customer-label] { max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
