:root {
  --paper: #f7f3eb;
  --paper-deep: #eee7db;
  --ivory: #fffdf8;
  --ink: #27312c;
  --ink-soft: #58605b;
  --muted: #898d86;
  --line: rgba(39, 49, 44, 0.14);
  --line-strong: rgba(39, 49, 44, 0.25);
  --terracotta: #a9654e;
  --terracotta-deep: #874b38;
  --sage: #657568;
  --forest: #24352e;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --radius: 2px;
  --shadow: 0 18px 50px rgba(38, 48, 42, 0.08);
  --page: min(1320px, calc(100vw - 96px));
  --header-height: 82px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.02em;
}

::selection {
  color: var(--ivory);
  background: var(--terracotta);
}

.announcement {
  position: relative;
  z-index: 40;
  padding: 8px 20px;
  color: #f9f4ea;
  background: var(--forest);
  font-size: 11px;
  letter-spacing: 0.11em;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 35;
  background: rgba(247, 243, 235, 0.94);
  border-bottom: 1px solid rgba(39, 49, 44, 0.09);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(38, 48, 42, 0.07);
}

.header-inner {
  width: var(--page);
  min-height: var(--header-height);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 44px;
}

.brand,
.auth-brand,
.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
}

img.brand-mark {
  padding: 0;
  border: 0;
  object-fit: cover;
  background: var(--forest);
}

.brand-type,
.auth-brand > span:last-child,
.admin-brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-type strong,
.auth-brand strong,
.admin-brand strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.brand-type small,
.auth-brand small,
.admin-brand small {
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 0.22em;
  opacity: 0.65;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.2vw, 34px);
}

.main-nav a {
  position: relative;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.icon-link {
  position: relative;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 180ms ease;
}

.icon-link:hover {
  background: rgba(39, 49, 44, 0.07);
}

.icon-link svg,
.search-form svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.cart-count {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  color: var(--ivory);
  background: var(--terracotta);
  border-radius: 20px;
  font-size: 9px;
  line-height: 1;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  padding: 0;
  display: none;
  border: 0;
  background: transparent;
}

.menu-toggle span {
  width: 22px;
  height: 1px;
  margin: 6px auto;
  display: block;
  background: var(--ink);
}

.section-shell,
.page-shell {
  width: var(--page);
  margin-right: auto;
  margin-left: auto;
}

.page-shell {
  min-height: 58vh;
  padding-top: 44px;
  padding-bottom: 110px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--terracotta);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
}

.button {
  min-height: 48px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--ivory);
  background: var(--forest);
  border-color: var(--forest);
}

.button-primary:hover {
  background: #14231d;
  border-color: #14231d;
}

.button-outline {
  color: var(--ink);
  background: transparent;
  border-color: var(--line-strong);
}

.button-outline:hover {
  background: rgba(39, 49, 44, 0.06);
}

.button-light {
  color: var(--forest);
  background: var(--ivory);
  border-color: var(--ivory);
}

.button-light:hover {
  background: #f0e8dc;
}

.button-wide {
  width: 100%;
}

.button.small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.text-link span {
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.text-link-light {
  color: #f9f5ec;
}

.text-button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-button.danger {
  color: #9b493b;
}

.hero {
  position: relative;
  height: min(760px, calc(100vh - 112px));
  min-height: 570px;
  overflow: hidden;
  color: #fffdf8;
  background: #8b765f;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 43%;
  animation: heroScale 1.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(25, 33, 28, 0.74) 0%, rgba(25, 33, 28, 0.35) 40%, rgba(25, 33, 28, 0.02) 70%),
    linear-gradient(0deg, rgba(22, 29, 25, 0.2), transparent 45%);
}

.hero-copy {
  position: absolute;
  top: 50%;
  left: max(7vw, calc((100vw - 1320px) / 2));
  width: min(530px, 43vw);
  transform: translateY(-48%);
}

.hero-copy .eyebrow {
  color: #ead8c1;
}

.hero-copy h1 {
  margin-bottom: 22px;
  font-size: clamp(48px, 5.1vw, 76px);
  line-height: 1.16;
  letter-spacing: 0.05em;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.13);
}

.hero-copy > p:not(.eyebrow) {
  width: min(420px, 100%);
  margin-bottom: 34px;
  color: rgba(255, 253, 248, 0.82);
  font-size: 15px;
  letter-spacing: 0.03em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 27px;
}

.hero-note {
  position: absolute;
  right: 24px;
  bottom: 28px;
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.category-section,
.product-section {
  padding-top: 106px;
}

.section-heading {
  margin-bottom: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading.compact {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin-bottom: 10px;
  font-size: clamp(29px, 3vw, 42px);
  line-height: 1.25;
}

.section-heading p:not(.eyebrow) {
  max-width: 570px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.16fr repeat(4, 1fr);
  gap: 14px;
}

.category-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--paper-deep);
}

.category-card img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card:hover img {
  transform: scale(1.04);
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(27, 35, 30, 0.55), rgba(27, 35, 30, 0.03) 60%);
}

.category-label {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  color: #fff;
}

.category-label strong {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.category-label small {
  font-size: 8px;
  letter-spacing: 0.16em;
  opacity: 0.7;
}

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

.product-card {
  min-width: 0;
}

.product-image-wrap {
  position: relative;
  height: 0;
  padding-bottom: 135%;
  display: block;
  overflow: hidden;
  background: #e9e2d7;
}

.product-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-image-wrap img {
  transform: scale(1.035);
}

.product-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  padding: 5px 10px;
  color: var(--ivory);
  background: rgba(34, 45, 39, 0.84);
  font-size: 9px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(8px);
}

.sold-out {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ivory);
  background: rgba(39, 49, 44, 0.4);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.product-view {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 12px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.92);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 220ms ease, transform 220ms ease;
  backdrop-filter: blur(10px);
}

.product-card:hover .product-view {
  opacity: 1;
  transform: translateY(0);
}

.product-card-body {
  padding-top: 15px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-category {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.product-card h3 {
  margin-bottom: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.product-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}

.product-price strong {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.product-price del {
  color: var(--muted);
  font-size: 10px;
}

.editorial {
  margin-top: 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(400px, 0.88fr);
  min-height: 650px;
  background: #e8dfd2;
}

.editorial-image {
  position: relative;
  overflow: hidden;
}

.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-stamp {
  position: absolute;
  right: 30px;
  bottom: 30px;
  width: 100px;
  height: 100px;
  padding-top: 32px;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  font-size: 9px;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-align: center;
}

.editorial-copy {
  padding: 92px clamp(40px, 6vw, 90px) 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.editorial-copy h2 {
  margin-bottom: 25px;
  font-size: clamp(38px, 4vw, 55px);
  line-height: 1.25;
}

.editorial-copy > p:not(.eyebrow) {
  max-width: 420px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.editorial-detail {
  width: 100%;
  margin-top: 70px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}

.editorial-detail span {
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 32px;
}

.editorial-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-align: right;
}

.service-strip {
  width: var(--page);
  margin: 0 auto;
  padding: 62px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.service-strip > div {
  padding: 0 32px;
  border-right: 1px solid var(--line);
}

.service-strip > div:first-child {
  padding-left: 0;
}

.service-strip > div:last-child {
  border-right: 0;
}

.service-strip span {
  display: block;
  margin-bottom: 16px;
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: 13px;
}

.service-strip strong {
  display: block;
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
}

.service-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.site-footer {
  padding: 70px max(48px, calc((100vw - 1320px) / 2)) 25px;
  color: #e9e4da;
  background: var(--forest);
}

.footer-main {
  padding-bottom: 55px;
  display: flex;
  justify-content: space-between;
  gap: 50px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.footer-brand strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

.footer-brand p {
  max-width: 310px;
  margin-top: 12px;
  color: rgba(233, 228, 218, 0.56);
  font-size: 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 80px;
}

.footer-links h3 {
  margin-bottom: 17px;
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.footer-links a,
.footer-links p,
.footer-links span {
  margin: 0 0 9px;
  display: block;
  color: rgba(233, 228, 218, 0.54);
  font-size: 11px;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(233, 228, 218, 0.38);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.shop-hero {
  max-width: 760px;
  padding: 34px 0 56px;
}

.shop-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(43px, 5vw, 68px);
  line-height: 1.2;
}

.shop-hero > p:last-child {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.shop-toolbar {
  padding: 19px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.search-form {
  width: min(470px, 100%);
  display: flex;
  align-items: center;
  gap: 11px;
}

.search-form input {
  min-width: 0;
  flex: 1;
  padding: 8px 0;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 13px;
}

.search-form button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  font-size: 12px;
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
}

.sort-form select {
  padding: 6px 26px 6px 5px;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 12px;
}

.shop-category-pills {
  padding: 25px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.shop-category-pills a {
  min-width: 62px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 40px;
  color: var(--ink-soft);
  font-size: 11px;
  text-align: center;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.shop-category-pills a:hover,
.shop-category-pills a.active {
  color: var(--ivory);
  background: var(--forest);
  border-color: var(--forest);
}

.result-count {
  margin: 16px 0 27px;
  color: var(--muted);
  font-size: 11px;
}

.result-count strong {
  color: var(--ink);
}

.shop-product-grid {
  grid-template-columns: repeat(4, 1fr);
}

.empty-state {
  min-height: 410px;
  padding: 70px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--line);
}

.empty-mark {
  margin-bottom: 16px;
  color: var(--terracotta);
  font-size: 55px;
  font-weight: 200;
}

.empty-state h2 {
  font-size: 28px;
}

.empty-state p {
  max-width: 410px;
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb {
  margin-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(410px, 0.9fr);
  align-items: start;
  gap: clamp(45px, 7vw, 110px);
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.product-main-image {
  position: relative;
  overflow: hidden;
  background: #e9e1d5;
}

.product-main-image img {
  width: 100%;
  max-height: 790px;
  object-fit: cover;
}

.detail-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 7px 12px;
  color: var(--ivory);
  background: rgba(39, 49, 44, 0.82);
  font-size: 9px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(10px);
}

.gallery-caption {
  padding-top: 11px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.product-thumbnails {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 92px));
  gap: 8px;
}

.product-thumbnails button {
  padding: 0;
  overflow: hidden;
  background: #e9e1d5;
  border: 2px solid transparent;
  opacity: 0.72;
  transition: border-color 160ms ease, opacity 160ms ease;
}

.product-thumbnails button:hover,
.product-thumbnails button.active {
  border-color: var(--terracotta);
  opacity: 1;
}

.product-thumbnails img {
  width: 100%;
  height: 92px;
  object-fit: cover;
}

.product-info {
  padding-top: 35px;
}

.product-info-head {
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.product-info h1 {
  margin-bottom: 11px;
  font-size: clamp(36px, 4vw, 55px);
  line-height: 1.23;
}

.product-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.detail-price {
  padding: 22px 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.detail-price strong {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
}

.detail-price del {
  color: var(--muted);
  font-size: 12px;
}

.variant-panel {
  padding: 4px 0 22px;
}

.variant-heading {
  margin-bottom: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.variant-heading label {
  font-weight: 600;
}

.variant-heading span {
  color: var(--muted);
  font-size: 10px;
}

.color-options {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-option {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  font-size: 11px;
  transition: border-color 160ms ease, background 160ms ease;
}

.color-option:hover,
.color-option.selected {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
}

.color-dot {
  width: 13px;
  height: 13px;
  display: inline-block;
  background: var(--swatch);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
}

.size-heading {
  margin-top: 5px;
}

.size-guide {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.size-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.size-option {
  min-width: 52px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 11px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.size-option:hover,
.size-option.selected {
  color: var(--ivory);
  background: var(--forest);
  border-color: var(--forest);
}

.size-option:disabled {
  color: #b4b3ac;
  background:
    linear-gradient(to top right, transparent calc(50% - 0.5px), rgba(39, 49, 44, 0.22) 50%, transparent calc(50% + 0.5px));
  border-color: var(--line);
  text-decoration: line-through;
}

.stock-message {
  min-height: 18px;
  margin: 13px 0 0;
  color: var(--sage);
  font-size: 10px;
}

.quantity-row {
  margin: 4px 0 18px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
}

.quantity-control {
  height: 40px;
  display: inline-flex;
  border: 1px solid var(--line);
}

.quantity-control button {
  width: 38px;
  border: 0;
  background: transparent;
  font-size: 18px;
}

.quantity-control input {
  width: 38px;
  border: 0;
  outline: none;
  background: transparent;
  text-align: center;
  -moz-appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button {
  display: none;
}

.inventory-note {
  color: var(--muted);
  font-size: 10px;
}

.product-purchase-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.product-purchase-actions .button {
  min-height: 56px;
  padding: 0 17px;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
}

.product-purchase-actions .button span:last-child {
  font-size: 10px;
  white-space: nowrap;
}

.buy-now-button {
  position: relative;
}

.buy-now-button::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
  content: "";
}

.pay-note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.detail-accordions {
  margin-top: 31px;
  border-top: 1px solid var(--line);
}

.detail-accordions details {
  border-bottom: 1px solid var(--line);
}

.detail-accordions summary {
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  list-style: none;
  font-size: 12px;
  cursor: pointer;
}

.detail-accordions summary::-webkit-details-marker {
  display: none;
}

.detail-accordions p {
  padding: 0 20px 20px 0;
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.9;
}

.related-section {
  margin-top: 110px;
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

.size-dialog {
  width: min(420px, calc(100vw - 36px));
  padding: 35px;
  border: 0;
  color: var(--ink);
  background: var(--ivory);
  box-shadow: var(--shadow);
}

.size-dialog::backdrop {
  background: rgba(25, 34, 29, 0.53);
  backdrop-filter: blur(3px);
}

.size-dialog h2 {
  font-size: 30px;
}

.size-dialog p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 12px;
}

.size-dialog table {
  width: 100%;
  margin: 18px 0 25px;
  border-collapse: collapse;
  font-size: 12px;
}

.size-dialog th,
.size-dialog td {
  padding: 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.dialog-close {
  position: absolute;
  top: 10px;
  right: 13px;
  border: 0;
  background: transparent;
  font-size: 22px;
}

.auth-page {
  min-height: 100vh;
  background: var(--ivory);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}

.auth-shell-reverse {
  grid-template-columns: 0.92fr 1.08fr;
}

.auth-visual {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: var(--ivory);
  background: #695c4d;
}

.auth-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(24, 34, 28, 0.72), rgba(24, 34, 28, 0.02) 68%);
  content: "";
}

.auth-visual > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.auth-brand {
  position: absolute;
  top: 38px;
  left: 45px;
  z-index: 2;
}

.auth-brand > img.brand-mark {
  width: 40px;
  height: 40px;
  position: static;
  flex: 0 0 auto;
  object-fit: cover;
}

.auth-visual-copy {
  position: absolute;
  right: 10%;
  bottom: 11%;
  left: 10%;
  z-index: 2;
}

.auth-visual-copy .eyebrow {
  color: #ead8c1;
}

.auth-visual-copy h1 {
  margin-bottom: 15px;
  font-size: clamp(42px, 4.6vw, 66px);
  line-height: 1.24;
}

.auth-visual-copy > p:last-child {
  max-width: 410px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.auth-panel {
  position: relative;
  padding: 70px clamp(40px, 8vw, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-back {
  position: absolute;
  top: 34px;
  left: 40px;
  color: var(--muted);
  font-size: 11px;
}

.auth-form-wrap {
  width: min(400px, 100%);
}

.auth-form-wrap h2,
.admin-login-form h2 {
  margin-bottom: 9px;
  font-size: 42px;
}

.auth-intro,
.admin-login-form > div > p:not(.eyebrow) {
  margin-bottom: 31px;
  color: var(--muted);
  font-size: 12px;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.stack-form label,
.form-grid label,
.fixed-shipping-field,
.order-status-editor label,
.password-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.stack-form label > span,
.form-grid label > span,
.fixed-shipping-field > span,
.order-status-editor label > span,
.password-form label > span {
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 500;
}

.stack-form label > small {
  color: var(--muted);
  font-size: 9px;
}

.stack-form input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.fixed-shipping-field input,
.order-status-editor select,
.password-form input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  background: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.stack-form input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.fixed-shipping-field input:focus,
.order-status-editor select:focus,
.password-form input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(101, 117, 104, 0.1);
}

.stack-form .button {
  margin-top: 7px;
}

.auth-switch {
  margin: 21px 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.auth-switch a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-alert,
.form-success {
  margin-bottom: 20px;
  padding: 11px 14px;
  color: #803d32;
  background: #f5e7e2;
  border-left: 2px solid #ad5b49;
  font-size: 11px;
}

.form-success {
  color: #365844;
  background: #e7efe8;
  border-color: #557b60;
}

.form-alert.wide,
.form-success.wide {
  margin-bottom: 22px;
}

.form-alert.hidden,
.hidden {
  display: none !important;
}

.demo-hint {
  margin-top: 25px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 10px;
}

.demo-hint strong {
  color: var(--ink);
  font-size: 11px;
}

.demo-hint small {
  margin-top: 4px;
}

.auth-register-visual .auth-visual-copy {
  left: 9%;
}

.page-title-row {
  margin: 18px 0 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.page-title-row.compact {
  margin: 0 0 25px;
}

.page-title-row h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.2;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 45px;
}

.cart-list-head {
  padding: 12px 0;
  display: grid;
  grid-template-columns: 1fr 135px 80px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-align: center;
}

.cart-list-head span:first-child {
  text-align: left;
}

.cart-item {
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1fr 135px 80px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.cart-item-product {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cart-item-product img {
  width: 92px;
  height: 120px;
  object-fit: cover;
  background: var(--paper-deep);
}

.cart-item-product h3 {
  margin: 0 0 5px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
}

.cart-item-product p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.cart-item-product button {
  margin-top: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-item .quantity-control {
  margin: 0 auto;
}

.cart-line-total {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.cart-summary,
.checkout-summary {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  padding: 30px;
  background: var(--ivory);
  border: 1px solid var(--line);
}

.cart-summary h2,
.checkout-summary h2 {
  margin-bottom: 26px;
  font-size: 28px;
}

.cart-summary dl,
.checkout-summary dl {
  margin: 0 0 21px;
}

.cart-summary dl > div,
.checkout-summary dl > div {
  padding: 9px 0;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 11px;
}

.cart-summary dd,
.checkout-summary dd {
  margin: 0;
}

.cart-summary .summary-total,
.checkout-summary .summary-total {
  margin-top: 10px;
  padding: 17px 0 8px;
  align-items: baseline;
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.summary-total dd {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
}

.summary-note {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
}

.secure-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.secure-note span {
  color: var(--sage);
}

.loading-block {
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.loading-block span {
  height: 90px;
  background: linear-gradient(90deg, #ece5da, #f6f1e8, #ece5da);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

.cart-empty {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.cart-empty strong {
  margin-bottom: 7px;
  font-family: var(--serif);
  font-size: 25px;
}

.cart-empty p {
  color: var(--muted);
  font-size: 11px;
}

.checkout-steps {
  margin: 12px 0 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
}

.checkout-steps span {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.checkout-steps b {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 500;
}

.checkout-steps span.active {
  color: var(--ink);
}

.checkout-steps span.active b {
  color: var(--ivory);
  background: var(--forest);
  border-color: var(--forest);
}

.checkout-steps i {
  width: 75px;
  height: 1px;
  background: var(--line);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 42px;
}

.checkout-card {
  margin-bottom: 18px;
  padding: 26px 29px;
  background: rgba(255, 253, 248, 0.6);
  border: 1px solid var(--line);
}

.checkout-card-head {
  margin-bottom: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.checkout-card-head h2 {
  margin: 0;
  font-size: 21px;
}

.address-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.address-option {
  position: relative;
  padding: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.address-option:has(input:checked) {
  border-color: var(--forest);
  background: rgba(255, 255, 255, 0.55);
}

.address-option input {
  position: absolute;
  opacity: 0;
}

.address-radio {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.address-option input:checked + .address-radio {
  border: 4px solid var(--forest);
}

.address-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink-soft);
  font-size: 11px;
}

.address-content strong {
  color: var(--ink);
  font-size: 12px;
}

.address-content small {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 400;
}

.address-content em {
  width: fit-content;
  padding: 1px 7px;
  color: var(--terracotta);
  border: 1px solid rgba(169, 101, 78, 0.3);
  font-size: 8px;
  font-style: normal;
}

.address-form {
  margin-top: 17px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.span-2 {
  grid-column: span 2;
}

.form-grid textarea {
  resize: vertical;
}

.check-line,
.toggle-line {
  margin-top: 13px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  color: var(--ink-soft);
  font-size: 10px;
  cursor: pointer;
}

.check-line input,
.toggle-line input {
  width: 15px;
  min-height: auto;
  accent-color: var(--forest);
}

.checkout-item {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 67px 1fr auto;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
}

.checkout-item img {
  width: 67px;
  height: 84px;
  object-fit: cover;
}

.checkout-item h3 {
  margin: 0 0 4px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
}

.checkout-item p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.checkout-item > strong {
  font-family: var(--serif);
  font-size: 13px;
}

.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.shipping-choice {
  position: relative;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.shipping-choice:hover,
.shipping-choice:has(input:checked) {
  border-color: var(--forest);
  background: rgba(255, 255, 255, 0.56);
}

.shipping-choice > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.shipping-radio-mark {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: border 160ms ease;
}

.shipping-choice:has(input:checked) .shipping-radio-mark {
  border: 4px solid var(--forest);
}

.radio-dot {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  border: 4px solid var(--forest);
  border-radius: 50%;
}

.shipping-choice > div {
  flex: 1;
}

.shipping-choice strong {
  font-size: 11px;
}

.shipping-choice > strong:last-child {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 14px;
  white-space: nowrap;
}

.shipping-choice p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.delivery-tip {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.checkout-account {
  margin-top: 17px;
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.checkout-account strong {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 500;
}

.account-hero {
  min-height: 225px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ivory);
  background:
    linear-gradient(90deg, rgba(32, 47, 39, 0.97), rgba(32, 47, 39, 0.74)),
    url("/images/products/women-cardigan.jpg") center 24% / cover;
}

.account-avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 27px;
}

.account-hero > div:nth-child(2) {
  flex: 1;
}

.account-hero .eyebrow {
  color: #ddc7aa;
}

.account-hero h1 {
  margin-bottom: 4px;
  font-size: clamp(30px, 4vw, 44px);
}

.account-hero p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
}

.account-hero .button {
  color: var(--ivory);
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
}

.account-layout {
  margin-top: 35px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}

.account-nav {
  display: flex;
  flex-direction: column;
  font-size: 11px;
}

.account-nav a,
.account-nav form button {
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
}

.account-nav a.active {
  color: var(--ink);
  font-weight: 600;
}

.account-nav a span {
  color: var(--muted);
}

.account-nav form button {
  color: var(--muted);
}

.account-content {
  min-width: 0;
}

.profile-card {
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 30px;
  background: var(--ivory);
  border: 1px solid var(--line);
}

.profile-card h2 {
  font-size: 27px;
}

.profile-card dl {
  margin: 0;
}

.profile-card dl > div {
  padding: 9px 0;
  display: grid;
  grid-template-columns: 115px 1fr;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.profile-card dt {
  color: var(--muted);
}

.profile-card dd {
  margin: 0;
}

.address-section {
  margin-top: 45px;
}

.account-address-form {
  margin-bottom: 20px;
  padding: 24px;
  background: rgba(255, 253, 248, 0.58);
  border: 1px solid var(--line);
}

.address-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
}

.address-card {
  padding: 22px;
  background: var(--ivory);
  border: 1px solid var(--line);
}

.address-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.address-card strong {
  font-size: 13px;
}

.address-card span {
  color: var(--muted);
  font-size: 10px;
}

.address-card em {
  padding: 1px 6px;
  color: var(--terracotta);
  border: 1px solid rgba(169, 101, 78, 0.25);
  font-size: 8px;
  font-style: normal;
}

.address-card p {
  min-height: 42px;
  margin: 11px 0 17px;
  color: var(--ink-soft);
  font-size: 11px;
}

.address-actions {
  display: flex;
  gap: 15px;
}

.address-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mini-empty {
  padding: 38px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.42);
  border: 1px dashed var(--line);
  font-size: 11px;
  text-align: center;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.order-card {
  background: rgba(255, 253, 248, 0.6);
  border: 1px solid var(--line);
}

.order-card-head {
  padding: 11px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(238, 231, 219, 0.55);
  border-bottom: 1px solid var(--line);
}

.order-card-head > div {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 9px;
}

.status-pill {
  padding: 4px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 30px;
  font-size: 8px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.status-pill.large {
  padding: 7px 16px;
  font-size: 10px;
}

.status-pending_payment {
  color: #916335;
  background: #f5ead9;
  border-color: #ead6ba;
}

.status-pending_shipment {
  color: #73551f;
  background: #f2e7ca;
  border-color: #e5d3a4;
}

.status-shipped,
.status-out_for_delivery {
  color: #3b6171;
  background: #e4edf0;
  border-color: #c9dce2;
}

.status-completed {
  color: #3d654d;
  background: #e4eee6;
  border-color: #c9dfcf;
}

.status-canceled {
  color: #777772;
  background: #eeedeb;
  border-color: #dedcd8;
}

.order-card-body {
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr) 100px auto;
  align-items: center;
  gap: 24px;
}

.order-thumbs {
  height: 70px;
  display: flex;
  gap: 5px;
  overflow: hidden;
}

.order-thumbs img {
  width: 55px;
  height: 70px;
  object-fit: cover;
}

.order-thumb-placeholder {
  width: 55px;
  height: 70px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: var(--paper-deep);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.order-summary-text strong {
  font-size: 12px;
  font-weight: 500;
}

.order-summary-text p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.order-total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.order-total span {
  color: var(--muted);
  font-size: 8px;
}

.order-total strong {
  font-family: var(--serif);
  font-size: 17px;
}

.back-link {
  margin-bottom: 23px;
  display: inline-block;
  color: var(--muted);
  font-size: 10px;
}

.order-success-banner {
  margin-bottom: 28px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #315642;
  background: #e4eee5;
  border: 1px solid #cbded0;
}

.order-success-banner > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #527a5d;
  border-radius: 50%;
  font-size: 12px;
}

.order-success-banner strong {
  font-size: 12px;
}

.order-success-banner p {
  margin: 1px 0 0;
  font-size: 10px;
}

.order-detail-head {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.order-detail-head h1 {
  margin-bottom: 6px;
  font-size: clamp(31px, 4vw, 45px);
}

.order-detail-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.order-progress {
  margin-bottom: 35px;
  padding: 22px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 253, 248, 0.5);
  border: 1px solid var(--line);
}

.order-progress > div {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
}

.order-progress > div:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: 15px;
  left: 110px;
  height: 1px;
  background: var(--line);
  content: "";
}

.order-progress span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 9px;
}

.order-progress > div.active {
  color: var(--ink);
}

.order-progress > div.active span {
  color: var(--ivory);
  background: var(--forest);
  border-color: var(--forest);
}

.order-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 22px;
}

.order-panel {
  margin-bottom: 18px;
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid var(--line);
}

.order-panel-head {
  padding: 15px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.order-panel-head h2 {
  margin: 0;
  font-size: 19px;
}

.order-panel-head span {
  color: var(--muted);
  font-size: 9px;
}

.order-item {
  padding: 14px 21px;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.order-item:last-child {
  border-bottom: 0;
}

.order-item img {
  width: 64px;
  height: 80px;
  object-fit: cover;
}

.order-item strong {
  font-size: 11px;
  font-weight: 500;
}

.order-item p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.address-display {
  padding: 18px 21px;
}

.address-display strong {
  font-size: 11px;
}

.address-display p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 10px;
}

.delivery-detail-line {
  margin-top: 14px;
  padding-top: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.delivery-detail-line span {
  color: var(--muted);
  font-size: 9px;
}

.delivery-detail-line strong {
  font-size: 10px;
}

.delivery-detail-line em {
  padding: 2px 7px;
  color: #47675a;
  background: #e4eee6;
  font-size: 8px;
  font-style: normal;
}

.order-side {
  position: sticky;
  top: calc(var(--header-height) + 25px);
}

.status-description {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.status-dot {
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}

.status-description strong {
  font-size: 12px;
}

.status-description p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.order-price-list {
  margin: 0;
  padding: 0 20px 18px;
}

.order-price-list > div {
  padding: 7px 0;
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 10px;
}

.order-price-list div:last-child {
  margin-top: 6px;
  padding-top: 14px;
  color: var(--ink);
  border-top: 1px solid var(--line);
  font-weight: 600;
}

.order-price-list dd {
  margin: 0;
}

.order-side .order-panel > form {
  padding: 0 20px 13px;
}

.order-side .order-panel > form:last-child {
  padding-bottom: 20px;
  text-align: center;
}

.order-help {
  padding: 20px;
  color: var(--muted);
  background: var(--paper-deep);
  font-size: 9px;
}

.order-help strong {
  color: var(--ink-soft);
  font-size: 10px;
}

.order-help p {
  margin: 5px 0 1px;
  font-family: var(--serif);
  font-size: 15px;
}

.error-page {
  width: min(700px, calc(100vw - 40px));
  min-height: 65vh;
  margin: 0 auto;
  padding: 100px 0;
  text-align: center;
}

.error-code {
  display: block;
  margin-bottom: 8px;
  color: var(--paper-deep);
  font-family: var(--serif);
  font-size: clamp(100px, 18vw, 200px);
  line-height: 1;
}

.error-page h1 {
  margin-bottom: 12px;
  font-size: 37px;
}

.error-page > p:not(.eyebrow) {
  margin-bottom: 30px;
  color: var(--muted);
}

.error-page > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 230px;
  max-width: 370px;
  padding: 13px 17px;
  color: var(--ivory);
  background: var(--forest);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  font-size: 11px;
  animation: toastIn 240ms ease both;
}

.toast.error {
  background: #864735;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 650ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroScale {
  from { transform: scale(1.03); }
  to { transform: scale(1); }
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
}

@media (max-width: 1120px) {
  :root {
    --page: calc(100vw - 56px);
  }

  .header-inner {
    gap: 22px;
  }

  .main-nav {
    gap: 18px;
  }

  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .category-card {
    min-height: 290px;
  }

  .product-grid,
  .shop-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
    gap: 45px;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
}

@media (max-width: 900px) {
  :root {
    --page: calc(100vw - 40px);
    --header-height: 68px;
  }

  .announcement {
    font-size: 9px;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
    min-height: var(--header-height);
  }

  .menu-toggle {
    display: block;
  }

  .brand-type {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 60;
    width: min(310px, 84vw);
    padding: 100px 34px 35px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    box-shadow: 16px 0 60px rgba(20, 30, 24, 0.14);
    transform: translateX(-102%);
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .menu-open .main-nav {
    transform: translateX(0);
  }

  .main-nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 18px;
  }

  .main-nav a::after {
    display: none;
  }

  .hero {
    height: 680px;
    min-height: auto;
  }

  .hero-copy {
    left: 8vw;
    width: 72vw;
  }

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

  .category-card:first-child {
    grid-column: span 2;
  }

  .editorial {
    grid-template-columns: 1fr;
  }

  .editorial-image {
    min-height: 610px;
  }

  .service-strip {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .service-strip > div:nth-child(2) {
    border-right: 0;
  }

  .footer-main {
    flex-direction: column;
  }

  .footer-links {
    gap: 50px;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-thumbnails {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .product-thumbnails img {
    height: 66px;
  }

  .product-gallery {
    position: static;
  }

  .product-main-image img {
    max-height: none;
  }

  .product-info {
    padding-top: 0;
  }

  .cart-layout,
  .checkout-layout,
  .order-detail-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary,
  .checkout-summary,
  .order-side {
    position: static;
  }

  .auth-shell,
  .auth-shell-reverse {
    grid-template-columns: 1fr;
  }

  .auth-visual {
    min-height: 530px;
    grid-row: 1;
  }

  .auth-shell-reverse .auth-visual {
    grid-row: 1;
  }

  .auth-panel {
    min-height: 650px;
    grid-row: 2;
  }

  .account-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .account-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .account-nav a,
  .account-nav form button {
    padding: 12px 8px;
    justify-content: center;
    border: 1px solid var(--line);
    text-align: center;
  }
}

@media (max-width: 680px) {
  :root {
    --page: calc(100vw - 28px);
  }

  body {
    font-size: 14px;
  }

  .announcement {
    padding: 7px 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-actions {
    gap: 0;
  }

  .search-link {
    display: none;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
    font-size: 17px;
  }

  .hero {
    height: 690px;
  }

  .hero-image {
    object-position: 61% center;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(25, 33, 28, 0.84), rgba(25, 33, 28, 0.08) 72%);
  }

  .hero-copy {
    top: auto;
    right: 24px;
    bottom: 52px;
    left: 24px;
    width: auto;
    transform: none;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .hero-copy > p:not(.eyebrow) {
    margin-bottom: 25px;
    font-size: 12px;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 17px;
  }

  .hero-note {
    display: none;
  }

  .category-section,
  .product-section {
    padding-top: 72px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .section-heading h2 {
    font-size: 31px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .category-card,
  .category-card:first-child {
    min-height: 230px;
    grid-column: auto;
  }

  .category-card:first-child {
    grid-column: span 2;
    min-height: 300px;
  }

  .category-label strong {
    font-size: 19px;
  }

  .product-grid,
  .shop-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 27px 10px;
  }

  .product-badge {
    top: 8px;
    left: 8px;
    padding: 4px 7px;
    font-size: 8px;
  }

  .product-view {
    display: none;
  }

  .product-card-body {
    display: block;
    padding-top: 10px;
  }

  .product-card h3 {
    font-size: 12px;
    line-height: 1.45;
  }

  .product-price {
    margin-top: 5px;
    align-items: flex-start;
    flex-direction: row;
    gap: 7px;
  }

  .product-price strong {
    font-size: 13px;
  }

  .editorial {
    margin-top: 80px;
  }

  .editorial-image {
    min-height: 440px;
  }

  .editorial-copy {
    padding: 55px 25px;
  }

  .editorial-copy h2 {
    font-size: 38px;
  }

  .editorial-detail {
    margin-top: 45px;
  }

  .service-strip {
    padding: 45px 0;
    gap: 0;
  }

  .service-strip > div {
    padding: 20px 14px;
    border-right: 0;
  }

  .service-strip > div:first-child {
    padding-left: 0;
  }

  .service-strip span {
    margin-bottom: 6px;
  }

  .service-strip strong {
    font-size: 15px;
  }

  .site-footer {
    padding: 50px 22px 20px;
  }

  .footer-main {
    padding-bottom: 35px;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .page-shell {
    padding-top: 28px;
    padding-bottom: 80px;
  }

  .shop-hero {
    padding: 18px 0 36px;
  }

  .shop-hero h1 {
    font-size: 42px;
  }

  .shop-toolbar {
    gap: 12px;
  }

  .search-form {
    flex: 1;
  }

  .sort-form label {
    display: none;
  }

  .shop-category-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }

  .shop-category-pills a {
    flex: 0 0 auto;
  }

  .breadcrumb {
    overflow: hidden;
    white-space: nowrap;
  }

  .product-detail {
    gap: 0;
  }

  .product-main-image {
    margin-right: -14px;
    margin-left: -14px;
  }

  .gallery-caption {
    margin-bottom: 25px;
  }

  .product-info h1 {
    font-size: 36px;
  }

  .quantity-row {
    flex-wrap: wrap;
  }

  .product-purchase-actions {
    grid-template-columns: 1fr;
  }

  .product-purchase-actions .button {
    min-height: 52px;
  }

  .related-section {
    margin-top: 75px;
    padding-top: 50px;
  }

  .auth-visual {
    min-height: 450px;
  }

  .auth-brand {
    top: 24px;
    left: 23px;
  }

  .auth-visual-copy {
    right: 24px;
    bottom: 45px;
    left: 24px;
  }

  .auth-visual-copy h1 {
    font-size: 38px;
  }

  .auth-panel {
    min-height: auto;
    padding: 85px 24px 65px;
  }

  .auth-back {
    top: 28px;
    left: 24px;
  }

  .auth-form-wrap h2 {
    font-size: 36px;
  }

  .page-title-row {
    margin: 8px 0 30px;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .page-title-row h1 {
    font-size: 43px;
  }

  .cart-list-head {
    display: none;
  }

  .cart-item {
    position: relative;
    grid-template-columns: 1fr auto;
    gap: 15px;
    padding: 17px 0;
  }

  .cart-item-product img {
    width: 78px;
    height: 102px;
  }

  .cart-item .quantity-control {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin: 0;
  }

  .cart-line-total {
    position: absolute;
    right: 0;
    bottom: 18px;
    font-size: 14px;
  }

  .cart-summary,
  .checkout-summary {
    padding: 23px;
  }

  .checkout-steps {
    justify-content: flex-start;
    gap: 8px;
    overflow: hidden;
  }

  .checkout-steps i {
    width: 22px;
  }

  .checkout-steps span {
    gap: 5px;
    font-size: 9px;
  }

  .checkout-card {
    padding: 20px 17px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: span 1;
  }

  .checkout-item {
    grid-template-columns: 58px 1fr auto;
    gap: 10px;
  }

  .checkout-item img {
    width: 58px;
    height: 73px;
  }

  .account-hero {
    margin-right: -14px;
    margin-left: -14px;
    padding: 32px 23px;
    flex-wrap: wrap;
  }

  .account-avatar {
    width: 55px;
    height: 55px;
    font-size: 21px;
  }

  .account-hero > div:nth-child(2) {
    width: calc(100% - 85px);
    flex: none;
  }

  .account-hero h1 {
    font-size: 28px;
  }

  .account-hero .button {
    width: 100%;
    margin-top: 5px;
  }

  .account-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-card {
    padding: 22px;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .profile-card dl > div {
    grid-template-columns: 85px 1fr;
  }

  .address-grid {
    grid-template-columns: 1fr;
  }

  .order-card-head {
    align-items: flex-start;
  }

  .order-card-body {
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 15px;
  }

  .order-thumbs {
    width: 90px;
  }

  .order-thumbs img:nth-child(n+2) {
    display: none;
  }

  .order-total {
    align-items: flex-start;
  }

  .order-card-body .button {
    width: 100%;
  }

  .order-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-progress {
    padding: 18px 15px;
  }

  .order-progress > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    font-size: 9px;
  }

  .order-progress > div:not(:last-child)::after {
    top: 12px;
    right: 8px;
    left: 35px;
  }

  .toast-stack {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .toast {
    width: 100%;
    max-width: none;
  }
}
