:root {
  color-scheme: light;
  --ink: #30212c;
  --plum: #493342;
  --plum-deep: #21171e;
  --rose: #b77678;
  --rose-light: #e8c9c2;
  --cream: #faf7f2;
  --paper: #fffdf9;
  --muted: #756b70;
  --line: #e9e0db;
  --gold: #c9a66b;
  --shadow: 0 18px 54px rgb(48 33 44 / 10%);
  --surface-soft: #f5efea;
  --surface-blush: #f8f1ed;
  --radius-card: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body.storefront {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.storefront [hidden] {
  display: none !important;
}

.storefront button,
.storefront input,
.storefront select,
.storefront textarea {
  font: inherit;
}

.storefront button,
.storefront a {
  -webkit-tap-highlight-color: transparent;
}

.storefront button {
  color: inherit;
}

.storefront a {
  color: inherit;
}

.storefront img {
  max-width: 100%;
}

.storefront :focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 1200;
  padding: 0.7rem 1rem;
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(33 23 30 / 97%);
  color: #fff;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  box-shadow: 0 6px 24px rgb(25 15 22 / 12%);
  backdrop-filter: blur(14px);
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  width: min(100% - 3rem, 1320px);
  min-height: 86px;
  margin-inline: auto;
}

.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  width: 138px;
  height: 74px;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.8vw, 2.5rem);
  padding: 0;
  margin: 0 auto;
  list-style: none;
}

.nav-links a,
.nav-link-button {
  padding: 0.6rem 0;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 82%);
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-link-button:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.icon-button,
.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0.45rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.icon-button svg,
.cart-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.cart-button {
  gap: 0.5rem;
  font-size: 0.86rem;
}

.cart-count {
  display: inline-grid;
  min-width: 21px;
  height: 21px;
  padding-inline: 4px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 0.72rem;
}

.menu-toggle {
  display: none;
}

.search-bar {
  position: absolute;
  top: calc(100% - 0.25rem);
  right: 0;
  z-index: 2;
  display: flex;
  width: min(100%, 440px);
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.search-bar input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  outline-offset: -2px;
}

.search-bar input:focus-visible {
  outline-color: var(--rose);
}

.search-clear {
  min-width: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  position: relative;
  display: flex;
  min-height: min(760px, calc(100svh - 86px));
  align-items: center;
  overflow: hidden;
  padding: clamp(4rem, 10vw, 9rem) max(7vw, calc((100vw - 1320px) / 2));
  background-color: #3b2836;
  background-image: linear-gradient(90deg, rgb(34 22 31 / 74%) 0%, rgb(34 22 31 / 48%) 40%, rgb(34 22 31 / 4%) 100%), url("hero.svg");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 18%;
  background: linear-gradient(transparent, rgb(30 21 27 / 22%));
  content: "";
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  animation: hero-arrive 650ms ease both;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #f0d7c7;
}

.hero .eyebrow::before {
  width: 2rem;
  height: 1px;
  background: var(--gold);
  content: "";
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(3.2rem, 7.6vw, 7.1rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 em {
  color: #efd4c5;
  font-weight: 400;
}

.hero-copy {
  max-width: 420px;
  margin: 1.5rem 0 2rem;
  color: rgb(255 255 255 / 90%);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.storefront .button-light {
  background: #f5e9df;
  color: var(--plum-deep);
  box-shadow: 0 8px 24px rgb(20 13 19 / 18%);
}

.storefront .button-light:hover {
  background: #fff;
}

.storefront .button-dark {
  background: var(--plum);
  color: #fff;
}

.storefront .button-dark:hover:not(:disabled) {
  background: var(--plum-deep);
}

.storefront .button-outline {
  width: 100%;
  border-color: var(--plum);
  background: transparent;
  color: var(--plum);
}

.storefront .button-outline:hover {
  background: var(--plum);
  color: #fff;
}

.hero-scroll {
  position: absolute;
  right: max(7vw, calc((100vw - 1320px) / 2));
  bottom: 2rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgb(255 255 255 / 82%);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero-scroll span {
  color: #efd4c5;
  font-size: 1.25rem;
}

.section-wrap {
  width: min(100% - 3rem, 1240px);
  margin-inline: auto;
}

.shop-section {
  padding-block: clamp(4.5rem, 8vw, 7.5rem);
  background:
    radial-gradient(ellipse at 50% 0%, rgb(232 201 194 / 18%), transparent 44%),
    var(--paper);
}

.section-heading {
  margin-bottom: 2.8rem;
  text-align: center;
}

.section-heading .eyebrow {
  margin-bottom: 0.65rem;
}

.section-heading h2,
.review-intro h2,
.contact-strip h2,
.modal-box h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.13;
}

.section-heading > p:last-child,
.review-intro > p:not(.eyebrow) {
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.collection-tools {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.45rem;
}

.collection-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.filter-label {
  margin: 0;
  color: var(--plum);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.08rem;
}

.collection-meta .results-count {
  flex: 0 0 auto;
  margin: 0;
}

.category-filter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid rgb(73 51 66 / 7%);
  border-radius: 14px;
  background: var(--surface-soft);
}

.filter-btn {
  min-width: 0;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 99px;
  background: rgb(255 253 249 / 78%);
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--plum);
  background: var(--plum);
  color: #fff;
  box-shadow: 0 5px 14px rgb(48 33 44 / 14%);
}

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

.results-count {
  min-height: 1.4em;
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.1rem, 2.2vw, 1.8rem);
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(73 51 66 / 8%);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: 0 5px 18px rgb(48 33 44 / 3%);
  transition: box-shadow 220ms ease, transform 220ms ease, border-color 220ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgb(183 118 120 / 40%);
  box-shadow: var(--shadow);
}

.product-image-wrap {
  display: grid;
  aspect-ratio: 1 / 1.08;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 42%, #fff 0%, #f7f1ec 70%);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  padding: 0.8rem;
  object-fit: contain;
  transition: transform 350ms ease;
}

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

.product-image-wrap img.image-fallback {
  width: 52%;
  height: 52%;
  object-fit: contain;
}

.product-copy {
  display: flex;
  min-height: 205px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.1rem 1.1rem 1.15rem;
}

.product-copy h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.3;
}

.product-description {
  display: -webkit-box;
  min-height: 2.8em;
  overflow: hidden;
  margin: 0.55rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.81rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-price {
  margin: auto 0 0.8rem;
  color: var(--plum);
  font-size: 0.95rem;
  font-weight: 700;
}

.product-copy .button {
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  font-size: 0.79rem;
  border-radius: 5px;
}

.empty-state,
.error-message {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  color: var(--muted);
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1.6rem;
  font-weight: 400;
}

.empty-state p {
  margin-bottom: 0;
}

.error-message {
  color: #8a3038;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 2rem;
}

.page-button {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--plum);
  cursor: pointer;
}

.page-button[aria-current="page"],
.page-button:hover:not(:disabled) {
  border-color: var(--plum);
  background: var(--plum);
  color: #fff;
}

.page-button:disabled {
  cursor: default;
  opacity: 0.45;
}

.review-section {
  padding-block: clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(ellipse at 15% 5%, rgb(232 201 194 / 26%), transparent 35%),
    var(--surface-blush);
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.review-intro > p:not(.eyebrow) {
  margin-bottom: 1.6rem;
}

.review-form,
.checkout-form {
  display: grid;
  gap: 0.6rem;
}

.review-form label,
.checkout-form label {
  margin-top: 0.45rem;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 650;
}

.review-form label span {
  color: var(--muted);
  font-weight: 400;
}

.review-form input,
.review-form textarea,
.review-form select,
.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #dcd1ca;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
}

.review-form textarea,
.checkout-form textarea {
  resize: vertical;
}

.review-form button {
  justify-self: start;
  margin-top: 0.65rem;
}

.form-response {
  min-height: 1.3em;
  margin: 0.2rem 0 0;
  color: #315d45;
  font-size: 0.83rem;
}

.form-response.is-error {
  color: #9c3037;
}

.customer-reviews h3 {
  margin: 0 0 1rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.65rem;
  font-weight: 400;
}

.review-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.review-card {
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(48 33 44 / 4%);
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.review-stars {
  margin: 0 0 0.7rem;
  color: #a17b3e;
  letter-spacing: 0.12em;
}

.review-card blockquote {
  margin: 0;
  color: var(--plum);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.04rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.review-author {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.reviews-empty {
  grid-column: 1 / -1;
  padding: 1.5rem;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.contact-strip {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  background:
    radial-gradient(ellipse at 90% 20%, rgb(201 166 107 / 18%), transparent 35%),
    var(--plum);
  color: #fff;
}

.contact-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.contact-strip .eyebrow {
  color: #efd4c5;
}

.contact-strip h2 {
  max-width: 650px;
}

.contact-strip .button {
  flex: 0 0 auto;
}

.site-footer {
  padding: 3rem max(1.5rem, calc((100vw - 1240px) / 2)) 1.2rem;
  background: var(--plum-deep);
  color: rgb(255 255 255 / 75%);
  text-align: center;
}

.footer-brand {
  color: #fff;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 2rem;
  text-decoration: none;
}

.site-footer > p {
  margin: 0.45rem 0 1.4rem;
  font-size: 0.81rem;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 1.5rem;
  font-size: 0.78rem;
}

.social-links a,
.footer-bottom a {
  text-decoration-color: rgb(255 255 255 / 35%);
  text-underline-offset: 4px;
}

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

@keyframes hero-arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1240px;
  margin: 2.2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgb(255 255 255 / 13%);
  font-size: 0.73rem;
}

.modal,
.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 1.25rem;
  background: rgb(23 16 21 / 67%);
}

.modal[aria-hidden="false"],
.cart-backdrop[aria-hidden="false"] {
  display: flex;
}

.modal-box,
.cart-panel {
  position: relative;
  width: min(100%, 540px);
  max-height: min(90svh, 850px);
  overflow-y: auto;
  padding: clamp(1.6rem, 5vw, 2.5rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-box h2 {
  max-width: 440px;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.modal-box > p:not(.eyebrow) {
  color: var(--muted);
}

.modal-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.modal-box > .modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
}

.contact-info {
  display: grid;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-style: normal;
}

.contact-info a {
  color: var(--plum);
  text-decoration-color: var(--rose-light);
  text-underline-offset: 3px;
}

.cart-backdrop {
  justify-content: flex-end;
  padding: 0;
}

.cart-panel {
  display: flex;
  width: min(100%, 510px);
  height: 100%;
  max-height: 100%;
  flex-direction: column;
  padding: clamp(1.25rem, 4vw, 2rem);
  background: var(--paper);
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.cart-header .eyebrow {
  margin-bottom: 0.25rem;
}

.cart-header h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.75rem;
  font-weight: 400;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding-block: 0.6rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.cart-item h3 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 600;
}

.cart-item p {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.quantity-controls button {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.quantity-controls button:disabled {
  opacity: 0.4;
  cursor: default;
}

.quantity-controls .remove-item {
  border: 0;
  color: #8a3038;
  font-size: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empty-cart {
  padding-block: 2rem;
  color: var(--muted);
  text-align: center;
}

.cart-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.cart-total-line,
.checkout-summary p {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
}

.cart-total-line strong {
  color: var(--plum);
  font-size: 1.15rem;
}

.cart-note {
  margin: 0.3rem 0 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.checkout-btn {
  width: 100%;
}

.checkout-box {
  width: min(100%, 600px);
}

.checkout-form {
  gap: 0.45rem;
}

.checkout-summary {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 1rem;
  background: var(--cream);
  color: var(--muted);
  font-size: 0.88rem;
}

.checkout-summary strong {
  color: var(--ink);
}

.checkout-summary .checkout-grand-total {
  margin-top: 0.35rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1rem;
}

.checkout-summary .checkout-grand-total strong {
  color: var(--plum);
}

.checkout-form > button {
  width: 100%;
  margin-top: 0.3rem;
}

.toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: flex;
  max-width: min(420px, calc(100% - 2.5rem));
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 0.75rem 0.65rem 1rem;
  background: var(--plum-deep);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast-close {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgb(250 247 242 / 76%);
}

.loading-overlay[aria-hidden="false"] {
  display: flex;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 3px solid var(--rose-light);
  border-top-color: var(--plum);
  border-radius: 50%;
  animation: spin 850ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 900px) {
  .site-nav {
    width: min(100% - 2rem, 1320px);
    gap: 0.8rem;
  }

  .brand {
    width: 115px;
  }

  .nav-links {
    gap: 1rem;
  }

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

  .review-layout {
    gap: 2.5rem;
  }
}

@media (max-width: 680px) {
  html {
    scroll-padding-top: 5rem;
  }

  .site-nav {
    min-height: 70px;
  }

  .brand {
    width: 100px;
    height: 62px;
    margin-right: auto;
  }

  .menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-actions {
    gap: 0.25rem;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: -1rem;
    left: -1rem;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--plum-deep);
    box-shadow: 0 14px 20px rgb(0 0 0 / 13%);
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
  }

  .nav-links a,
  .nav-link-button {
    display: block;
    width: 100%;
    padding: 0.8rem 0;
    text-align: left;
  }

  .hero {
    min-height: clamp(390px, calc(100svh - 70px), 700px);
    align-items: flex-end;
    padding: 2.75rem 1.5rem 3.25rem;
    background-color: transparent;
    background-image: url("hero.svg");
    background-position: 58% center;
    background-size: cover;
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    max-width: 540px;
    color: var(--plum-deep);
  }

  .hero .eyebrow,
  .hero h1,
  .hero h1 em,
  .hero-copy {
    color: var(--plum-deep);
  }

  .hero-content .button {
    background: var(--plum-deep);
    color: #fff;
    text-shadow: none;
    box-shadow: 0 8px 22px rgb(33 23 30 / 24%);
  }

  .hero-content .button:hover {
    background: var(--plum);
  }

  .hero-scroll {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 10vw, 4rem);
  }

  .hero-copy {
    max-width: 330px;
    margin-block: 1rem 1.4rem;
  }

  .section-wrap {
    width: min(100% - 2rem, 1240px);
  }

  .shop-section {
    padding-block: 4rem;
  }

  .section-heading {
    margin-bottom: 2rem;
  }

  .category-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.6rem;
    border-radius: 12px;
  }

  .filter-btn {
    min-height: 44px;
    padding-inline: 0.45rem;
    font-size: 0.76rem;
  }

  .collection-meta {
    gap: 0.5rem;
  }

  .filter-label {
    font-size: 1rem;
  }

  .collection-meta .results-count {
    font-size: 0.73rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .product-image-wrap {
    aspect-ratio: 1;
  }

  .product-image-wrap img {
    padding: 0.45rem;
  }

  .product-copy {
    min-height: 188px;
    padding: 0.8rem;
  }

  .product-copy h3 {
    font-size: 1rem;
  }

  .product-description {
    font-size: 0.75rem;
  }

  .product-copy .button {
    min-height: 40px;
    padding-inline: 0.45rem;
    font-size: 0.73rem;
  }

  .review-section {
    padding-block: 3.6rem;
  }

  .review-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-strip-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-strip .button {
    width: 100%;
  }

  .site-footer {
    padding-inline: 1rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

  .review-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .site-nav {
    width: calc(100% - 1rem);
  }

  .brand {
    width: 84px;
  }

  .cart-button {
    gap: 0.25rem;
    font-size: 0.75rem;
  }

  .product-grid {
    gap: 0.55rem;
  }

  .product-copy {
    min-height: 195px;
    padding: 0.65rem;
  }

  .hero {
    min-height: 390px;
    padding-inline: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.receipt-main {
  display: grid;
  min-height: 100svh;
  place-items: center;
  padding: 2rem 1rem;
  background: var(--cream);
}

.receipt-card {
  width: min(100%, 800px);
  padding: clamp(1.5rem, 6vw, 4rem);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.receipt-brand {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--plum);
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.7rem;
  text-decoration: none;
}

.receipt-card h1 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: clamp(2.7rem, 8vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.receipt-intro {
  margin: 0.8rem 0 2rem;
  color: var(--muted);
}

.receipt-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.2rem 0;
  border-block: 1px solid var(--line);
}

.receipt-details div {
  min-width: 0;
}

.receipt-details dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
}

.receipt-details dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.receipt-card h2 {
  margin: 1.6rem 0 0.8rem;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.receipt-table-wrap {
  overflow-x: auto;
}

.receipt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.receipt-table th,
.receipt-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.receipt-table thead th {
  color: var(--muted);
  font-size: 0.73rem;
  text-transform: uppercase;
}

.receipt-table th:not(:first-child),
.receipt-table td:not(:first-child) {
  text-align: right;
}

.receipt-table tfoot th {
  text-align: right;
}

.receipt-table .receipt-grand-total th,
.receipt-table .receipt-grand-total td {
  border-bottom: 0;
  color: var(--plum);
  font-size: 1rem;
  font-weight: 700;
}

.receipt-thanks {
  margin-block: 1rem 1.5rem;
  color: var(--muted);
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.receipt-actions .button {
  min-width: 175px;
}

.receipt-actions[hidden],
#receipt-content[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .receipt-details {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .receipt-actions {
    flex-direction: column;
  }

  .receipt-actions .button {
    width: 100%;
  }
}

@media print {
  .receipt-main {
    display: block;
    min-height: 0;
    padding: 0;
    background: #fff;
  }

  .receipt-card {
    width: 100%;
    padding: 0;
    box-shadow: none;
  }

  .receipt-actions {
    display: none !important;
  }
}
