.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 22px;
  background: rgba(246, 241, 233, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: grid;
  justify-self: start;
  gap: 5px;
}

.brand-mark span {
  font-size: 25px;
  font-weight: 950;
  letter-spacing: .08em;
}

.brand-mark small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.site-nav a {
  opacity: .72;
  transition: opacity .2s var(--ease);
}

.site-nav a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.icon-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, .62);
  color: var(--ink);
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}

.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--paper-strong);
}

.badge {
  position: absolute;
  right: -5px;
  top: -5px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--ink);
  color: var(--paper);
  border: 2px solid var(--bg);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

.badge.soft {
  right: -6px;
  top: -6px;
  min-width: 32px;
  height: 18px;
  background: var(--accent);
  color: #fff8ef;
  font-size: 8px;
  letter-spacing: .03em;
}

.icon-user,
.icon-heart,
.icon-bag {
  position: relative;
  width: 18px;
  height: 18px;
}

.icon-user::before,
.icon-user::after,
.icon-heart::before,
.icon-heart::after,
.icon-bag::before,
.icon-bag::after {
  content: "";
  position: absolute;
  display: block;
}

.icon-user::before {
  left: 5px;
  top: 1px;
  width: 8px;
  height: 8px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.icon-user::after {
  left: 2px;
  bottom: 1px;
  width: 14px;
  height: 8px;
  border: 1.8px solid currentColor;
  border-radius: 9px 9px 2px 2px;
  border-bottom: 0;
}

.icon-heart::before,
.icon-heart::after {
  top: 3px;
  width: 10px;
  height: 14px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  transform-origin: bottom center;
}

.icon-heart::before {
  left: 2px;
  transform: rotate(-45deg);
}

.icon-heart::after {
  right: 2px;
  transform: rotate(45deg);
}

.icon-bag::before {
  left: 2px;
  bottom: 1px;
  width: 14px;
  height: 12px;
  border: 1.8px solid currentColor;
}

.icon-bag::after {
  left: 5px;
  top: 1px;
  width: 8px;
  height: 7px;
  border: 1.8px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.hero-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 22px 80px;
  display: grid;
  grid-template-columns: minmax(320px, .76fr) minmax(420px, 1.24fr);
  gap: 54px;
  align-items: center;
}

.hero-copy h1 {
  max-width: 640px;
  margin-bottom: 24px;
  font-size: clamp(58px, 8vw, 118px);
  line-height: .9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0 24px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-meta span {
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, .58);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-media {
  position: relative;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero-media img {
  aspect-ratio: 1.62;
  object-fit: cover;
}

.floating-product {
  position: absolute;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 5px;
  min-width: 178px;
  min-height: 86px;
  padding: 18px;
  border: 1px solid rgba(16, 16, 15, .22);
  background: rgba(255, 250, 242, .9);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.floating-product span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.floating-product strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 400;
}

.story-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr .72fr;
  gap: 14px;
}

.story-card {
  min-height: 360px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.story-card.dark {
  background: var(--ink);
  color: var(--paper);
}

.story-card.dark p:not(.quote) {
  color: rgba(255, 250, 242, .72);
}

.story-card.image-card {
  padding: 0;
  overflow: hidden;
}

.story-card.image-card img {
  height: 100%;
  object-fit: cover;
}

.quote {
  margin-bottom: 24px;
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: .98;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(180px, .42fr) 1fr;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, .58);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}

.chip:hover,
.chip.active {
  transform: translateY(-1px);
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

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

.product-card {
  position: relative;
  min-height: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.product-image {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  background: #eee6db;
  color: inherit;
  padding: 0;
  text-align: left;
}

.product-image img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.product-state {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 9px;
  background: rgba(255, 250, 242, .88);
  color: var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.product-title-row h3 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.price {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.product-copy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.size-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.size-choice {
  min-width: 38px;
  height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.size-choice.active,
.size-choice:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

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

.wishlist-btn {
  display: grid;
  place-items: center;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}

.wishlist-btn.active,
.wishlist-btn:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.service-tile {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.service-tile span {
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.service-tile h3 {
  margin: 78px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 400;
}

.service-tile p {
  margin-bottom: 0;
  color: var(--muted);
}

.care-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.care-strip img {
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--paper);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 22px 44px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer div {
  display: grid;
  gap: 4px;
}

.site-footer strong {
  color: var(--ink);
  letter-spacing: .12em;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(16, 16, 15, .48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s var(--ease);
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(520px, 100vw);
  height: 100vh;
  background: var(--paper);
  border-left: 1px solid var(--line);
  box-shadow: none;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(100% + 72px));
  transition: transform .28s var(--ease), visibility .28s var(--ease);
}

.drawer.open {
  visibility: visible;
  pointer-events: auto;
  box-shadow: -30px 0 90px rgba(16, 16, 15, .16);
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin-bottom: 0;
  font-size: 38px;
  line-height: .98;
}

.close-btn {
  position: relative;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
}

.close-btn::before,
.close-btn::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 20px;
  width: 18px;
  height: 1.8px;
  background: var(--ink);
}

.close-btn::before {
  transform: rotate(45deg);
}

.close-btn::after {
  transform: rotate(-45deg);
}

.drawer-body {
  overflow: auto;
  padding: 24px;
}

.product-drawer-body {
  display: grid;
  gap: 18px;
}

.drawer-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.drawer-gallery img {
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

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

.drawer-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .72);
}

.cart-line,
.order-line,
.account-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
}

.cart-line:last-child,
.order-line:last-child,
.account-line:last-child {
  border-bottom: 0;
}

.cart-line img,
.order-line img {
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.account-line > span:first-child:empty {
  display: block;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(127, 29, 29, .12), rgba(52, 92, 67, .12)),
    var(--paper-strong);
}

.line-meta {
  display: grid;
  gap: 4px;
}

.line-meta strong {
  font-size: 14px;
}

.line-meta span {
  color: var(--muted);
  font-size: 12px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
}

.qty-control button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-weight: 900;
}

.qty-control span {
  min-width: 30px;
  text-align: center;
  font-weight: 900;
}

.summary-box {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--paper-strong);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink-soft);
}

.summary-row span:first-child {
  color: var(--muted);
}

.summary-row.total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 900;
}

.checkout-form,
.account-stack {
  display: grid;
  gap: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  padding: 14px 16px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
}

.toast.success {
  background: var(--green);
}

.toast.warn {
  background: var(--accent);
}
