:root {
  --paper: #f3eee3;
  --paper-soft: #faf7f0;
  --paper-deep: #e7ddcc;
  --surface: #fffdf8;
  --ink: #28271f;
  --muted: #746f63;
  --line: #dbd1c0;
  --sage: #657a67;
  --sage-dark: #425442;
  --terracotta: #a15843;
  --wine: #762f43;
  --blue: #214e69;
  --green: #54734d;
  --red: #a74c3e;
  --gold: #b8893f;
  --cart-surface: #303c31;
  --cart-line: rgba(243, 238, 227, 0.16);
  --cart-text: #f6f0e4;
  --shadow-soft: 0 24px 60px rgba(67, 58, 43, 0.12);
  --shadow-card: 0 16px 34px rgba(67, 58, 43, 0.1);
  --radius-lg: 26px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1200px;
  --ease: 220ms ease-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  line-height: 1.55;
  background:
    linear-gradient(90deg, rgba(66, 84, 66, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(66, 84, 66, 0.025) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background: radial-gradient(circle at 15% 8%, rgba(161, 88, 67, 0.18), transparent 26rem);
}

body.cart-is-open {
  overflow: hidden;
}

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

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 3rem), var(--container));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--paper-soft);
  background: var(--sage-dark);
  transform: translateY(-180%);
  transition: transform var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(66, 84, 66, 0.12);
  background: rgba(243, 238, 227, 0.92);
  backdrop-filter: blur(16px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand__mark {
  display: inline-grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(66, 84, 66, 0.25);
  border-radius: 50%;
  color: var(--paper-soft);
  font-family: Georgia, serif;
  font-size: 0.8rem;
  letter-spacing: -0.08em;
  background: var(--sage-dark);
}

.brand__eyebrow,
.eyebrow {
  display: block;
  margin: 0 0 0.22rem;
  color: var(--terracotta);
  font-size: 0.71rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.brand__eyebrow {
  color: var(--muted);
  font-size: 0.63rem;
}

.brand__name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

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

.header-link {
  color: var(--sage-dark);
  font-size: 0.9rem;
  font-weight: 700;
  transition: color var(--ease);
}

.header-link:hover,
.header-link:focus-visible {
  color: var(--terracotta);
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.55rem 0.65rem 0.55rem 1rem;
  border: 1px solid var(--sage-dark);
  border-radius: 999px;
  color: var(--sage-dark);
  background: transparent;
  font-size: 0.9rem;
  font-weight: 800;
  transition: color var(--ease), background var(--ease), transform var(--ease);
}

.cart-trigger:hover,
.cart-trigger:focus-visible {
  color: var(--paper-soft);
  background: var(--sage-dark);
  transform: translateY(-2px);
}

.cart-trigger:active {
  transform: translateY(0);
}

.cart-count {
  display: inline-grid;
  width: 1.7rem;
  height: 1.7rem;
  place-items: center;
  border-radius: 50%;
  color: var(--paper-soft);
  background: var(--terracotta);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.intro {
  padding: clamp(4.5rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid rgba(66, 84, 66, 0.13);
}

.intro__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: clamp(2rem, 8vw, 9rem);
}

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

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

h1 {
  max-width: 10ch;
  margin-bottom: 1.25rem;
  color: var(--sage-dark);
  font-size: clamp(3.2rem, 7vw, 6.8rem);
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
}

.intro__lead {
  max-width: 52ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  text-wrap: pretty;
}

.intro__note {
  display: grid;
  grid-template-columns: 3rem 1fr;
  column-gap: 0.85rem;
  align-items: start;
  padding: 0.4rem 0 0.4rem 1.1rem;
  border-left: 1px solid var(--terracotta);
}

.intro__note-line {
  grid-row: span 2;
  width: 0.6rem;
  height: 0.6rem;
  margin-top: 0.33rem;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 7px rgba(161, 88, 67, 0.1);
}

.intro__note p {
  margin-bottom: 0.2rem;
  color: var(--sage-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.28rem;
  line-height: 1.15;
}

.intro__note span:last-child {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.9rem;
}

.catalog-section {
  padding: clamp(3rem, 7vw, 6rem) 0 6rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
}

.catalog-main {
  min-width: 0;
}

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

.section-heading h2 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.catalog-count {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

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

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  transition: transform var(--ease), box-shadow var(--ease);
}

.product-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.product-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.08;
  background: var(--paper-deep);
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease-out;
}

.product-card:hover .product-card__image {
  transform: scale(1.035);
}

.product-card__number {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border-radius: 50%;
  color: var(--paper-soft);
  background: rgba(48, 60, 49, 0.83);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.9rem;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.4rem;
  padding: 1.4rem;
}

.product-card__title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.product-card__category {
  margin-bottom: 0.32rem;
  color: var(--terracotta);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-card h3 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.product-card__variation {
  flex: 0 0 auto;
  padding-top: 0.15rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.color-picker {
  margin-top: auto;
}

.field-label {
  margin-bottom: 0.65rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.color-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper-soft);
  font-size: 0.8rem;
  font-weight: 700;
  transition: border-color var(--ease), color var(--ease), background var(--ease), transform var(--ease);
}

.color-choice:hover,
.color-choice:focus-visible {
  border-color: var(--sage);
  color: var(--ink);
  transform: translateY(-1px);
}

.color-choice.is-selected {
  border-color: var(--sage-dark);
  color: var(--sage-dark);
  background: #edf1e9;
}

.color-choice__swatch {
  display: block;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid rgba(255, 253, 248, 0.86);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(40, 39, 31, 0.18);
}

.swatch--wine .color-choice__swatch {
  background: var(--wine);
}

.swatch--blue .color-choice__swatch {
  background: var(--blue);
}

.swatch--green .color-choice__swatch {
  background: var(--green);
}

.swatch--red .color-choice__swatch {
  background: var(--red);
}

.selected-color {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform var(--ease), color var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button--primary {
  width: 100%;
  color: var(--paper-soft);
  background: var(--sage-dark);
  box-shadow: 0 10px 20px rgba(66, 84, 66, 0.16);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--sage);
  box-shadow: 0 13px 24px rgba(66, 84, 66, 0.2);
}

.no-script-message {
  padding: 1rem;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}

.cart-panel {
  position: sticky;
  top: 106px;
  display: flex;
  min-height: 500px;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--cart-text);
  background: var(--cart-surface);
  box-shadow: 0 26px 54px rgba(48, 60, 49, 0.2);
}

.cart-panel__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 1.5rem 0;
}

.eyebrow--light {
  color: #d6ad72;
}

.cart-panel h2 {
  margin-bottom: 0;
  color: var(--cart-text);
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.cart-close {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--cart-line);
  border-radius: 50%;
  color: var(--cart-text);
  background: transparent;
  font-size: 1.7rem;
  line-height: 1;
}

.cart-close:hover,
.cart-close:focus-visible {
  border-color: rgba(243, 238, 227, 0.45);
  background: rgba(243, 238, 227, 0.1);
}

.cart-panel__hint {
  margin: 0.9rem 1.5rem 1.3rem;
  color: rgba(246, 240, 228, 0.72);
  font-size: 0.84rem;
  text-wrap: pretty;
}

.cart-items {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem;
}

.cart-empty {
  display: grid;
  min-height: 230px;
  place-items: center;
  align-content: center;
  gap: 0.3rem;
  padding: 1.5rem;
  border: 1px dashed var(--cart-line);
  border-radius: var(--radius-md);
  color: rgba(246, 240, 228, 0.68);
  text-align: center;
}

.cart-empty__mark {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  margin-bottom: 0.6rem;
  place-items: center;
  border: 1px solid rgba(214, 173, 114, 0.6);
  border-radius: 50%;
  color: #d6ad72;
  font-family: Georgia, serif;
  font-size: 1.6rem;
}

.cart-empty p {
  margin-bottom: 0;
  color: var(--cart-text);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.cart-empty span:last-child {
  font-size: 0.82rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.7rem;
  border: 1px solid var(--cart-line);
  border-radius: var(--radius-md);
  background: rgba(243, 238, 227, 0.055);
}

.cart-item__image {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.cart-item__content {
  min-width: 0;
}

.cart-item__heading {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-item h3 {
  margin-bottom: 0.15rem;
  color: var(--cart-text);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
}

.cart-item p {
  margin-bottom: 0;
  color: rgba(246, 240, 228, 0.66);
  font-size: 0.75rem;
}

.cart-item p strong {
  color: var(--cart-text);
}

.cart-item__remove {
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  color: rgba(246, 240, 228, 0.66);
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
}

.cart-item__remove:hover,
.cart-item__remove:focus-visible {
  color: #e3a68f;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  margin-top: 0.6rem;
  border: 1px solid var(--cart-line);
  border-radius: 999px;
}

.quantity-control button {
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  color: var(--cart-text);
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
}

.quantity-control button:hover,
.quantity-control button:focus-visible {
  color: #e3c18e;
}

.quantity-control input {
  width: 2rem;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--cart-text);
  background: transparent;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
}

.cart-panel__footer {
  display: grid;
  gap: 0.85rem;
  margin-top: auto;
  padding: 1.2rem 1.5rem 1.5rem;
}

.cart-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--cart-line);
  color: rgba(246, 240, 228, 0.72);
  font-size: 0.82rem;
}

.cart-summary strong {
  color: var(--cart-text);
  font-variant-numeric: tabular-nums;
}

.button--buy {
  width: 100%;
  color: #2f3a2e;
  background: #d6ad72;
  box-shadow: 0 12px 22px rgba(214, 173, 114, 0.14);
}

.button--buy:hover,
.button--buy:focus-visible {
  background: #e1bf88;
  box-shadow: 0 14px 26px rgba(214, 173, 114, 0.2);
}

.button.is-disabled {
  cursor: not-allowed;
  opacity: 0.42;
  pointer-events: none;
}

.cart-panel__disclaimer {
  margin: 0;
  color: rgba(246, 240, 228, 0.52);
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: center;
}

.site-footer {
  border-top: 1px solid rgba(66, 84, 66, 0.13);
  background: var(--paper-deep);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer__inner strong,
.site-footer__inner span {
  display: block;
}

.site-footer__inner strong {
  margin-bottom: 0.15rem;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 1rem;
}

.site-footer__inner a {
  color: var(--sage-dark);
  font-weight: 800;
}

.site-footer__inner a:hover,
.site-footer__inner a:focus-visible {
  color: var(--terracotta);
}

.mobile-cart-bar,
.cart-overlay {
  display: none;
}

:focus-visible {
  outline: 3px solid rgba(161, 88, 67, 0.42);
  outline-offset: 3px;
}

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

@media (max-width: 980px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 60;
    width: min(100%, 420px);
    min-height: 100dvh;
    border-radius: 0;
    transform: translateX(102%);
    transition: transform 300ms ease-out;
  }

  .cart-panel.is-open {
    transform: translateX(0);
  }

  .cart-close {
    display: inline-block;
  }

  .cart-overlay:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: block;
    background: rgba(40, 39, 31, 0.44);
  }

  .mobile-cart-bar {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 0.7rem 1rem 0.7rem 1.2rem;
    border: 1px solid rgba(246, 240, 228, 0.2);
    border-radius: 999px;
    color: var(--paper-soft);
    background: var(--sage-dark);
    box-shadow: 0 14px 30px rgba(48, 60, 49, 0.22);
    font-size: 0.88rem;
    font-weight: 800;
  }

  .mobile-cart-bar__count {
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    color: var(--ink);
    background: #d6ad72;
    font-size: 0.75rem;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 2rem), var(--container));
  }

  .site-header__inner {
    min-height: 72px;
  }

  .header-link {
    display: none;
  }

  .cart-trigger {
    padding-left: 0.8rem;
  }

  .cart-trigger__label {
    display: none;
  }

  .intro {
    padding-top: 4rem;
  }

  .intro__layout {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(3rem, 15vw, 5.2rem);
  }

  .intro__note {
    max-width: 26rem;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .catalog-count {
    margin-bottom: 0;
  }

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

  .product-card__media {
    aspect-ratio: 1.18;
  }

  .site-footer {
    padding-bottom: 5.5rem;
  }

  .site-footer__inner {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
