:root {
  --container: 1120px;
  --ink: #f4d7bc;
  --muted: #d2aa86;
  --soft: #9a6a44;
  --gold: #d89b63;
  --gold-strong: #eca96d;
  --cream: #f7dbc1;
  --dark: #090604;
  --brown: #1b0d06;
  --panel: rgba(70, 31, 12, 0.7);
  --line: rgba(216, 155, 99, 0.35);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

@font-face {
  font-family: "Perfect Romantic";
  src: url("assets/fonts/PerfectRomantic-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 12%, rgba(141, 70, 24, 0.35), transparent 34rem),
    radial-gradient(circle at 14% 58%, rgba(86, 35, 12, 0.24), transparent 25rem),
    linear-gradient(180deg, #090604 0%, #150804 42%, #1b0904 100%);
  font-family: "Inter", Arial, sans-serif;
  font-weight: 300;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 1.25rem max(1rem, calc((100vw - var(--container)) / 2));
  border-bottom: 1px solid rgba(216, 155, 99, 0.16);
  background: rgba(8, 5, 3, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

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

.brand-icon {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: contain;
  margin-right: 0.9rem;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.brand-type strong,
.brand-type small {
  display: block;
  font-family: "Julius Sans One", "Optima", sans-serif;
  color: var(--cream);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-type strong {
  font-size: 1.05rem;
}

.brand-type small {
  margin-top: 0.45rem;
  color: var(--gold);
  font-size: 0.52rem;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  color: #f2cfb3;
  font-family: "Julius Sans One", "Optima", "Trebuchet MS", sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.055em;
}

.nav-toggle {
  display: none;
  grid-column: 2;
  justify-self: end;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  border: 1px solid rgba(216, 155, 99, 0.42);
  border-radius: 0.7rem;
  background: rgba(45, 18, 6, 0.48);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.3rem;
  height: 2px;
  margin: 0.28rem auto;
  border-radius: 2px;
  background: #efb981;
  transition: transform 200ms ease, opacity 200ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.36rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.36rem) rotate(-45deg);
}

.main-nav a {
  position: relative;
  padding: 0.48rem 0.82rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #ffe3c7;
  background: rgba(216, 155, 99, 0.1);
  border-color: rgba(216, 155, 99, 0.22);
  box-shadow: 0 0 0 4px rgba(216, 155, 99, 0.07);
  transform: translateY(-1px);
  outline: none;
}

.main-nav a.is-active {
  color: #ffd2a8;
  background: rgba(94, 42, 15, 0.52);
  border-color: rgba(216, 155, 99, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(255, 218, 184, 0.04),
    0 8px 22px rgba(0, 0, 0, 0.22);
}

.main-nav a {
  font-weight: 400;
}

.main-nav .social-icon {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  margin-left: 0.85rem;
  margin-right: -0.35rem;
  padding: 0;
  border: 1px solid rgba(216, 155, 99, 0.42);
  border-radius: 50%;
  color: #efb981;
  background: rgba(45, 18, 6, 0.48);
}

.main-nav .social-icon:hover,
.main-nav .social-icon:focus-visible {
  color: #ffe0bd;
  background: rgba(216, 155, 99, 0.14);
  border-color: rgba(236, 169, 109, 0.72);
  transform: translateY(-1px) scale(1.03);
}

.social-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: saturate(1.08) contrast(1.05);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(7, 5, 4, 0.95) 0%, rgba(9, 6, 4, 0.82) 33%, rgba(9, 6, 4, 0.34) 58%, rgba(9, 6, 4, 0.72) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), #090604 98%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 2rem));
  margin-left: max(1rem, calc((100vw - var(--container)) / 2));
  padding: 7.2rem 0 6.6rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Perfect Romantic", "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 0.98;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.1rem, 3.25vw, 3.65rem);
  line-height: 0.95;
}

h1 span {
  display: block;
}

h2 span {
  display: block;
}

.hero-copy {
  max-width: 500px;
  margin: 1.35rem 0 0;
  color: #eac3a5;
  font-family: "Inter", Arial, sans-serif;
  font-size: clamp(0.98rem, 1.18vw, 1.1rem);
  font-weight: 300;
  line-height: 1.75;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 520px;
  margin-top: 1.2rem;
}

.hero-points span {
  position: relative;
  color: #e2b58e;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.hero-points span + span {
  margin-left: 1rem;
  padding-left: 1rem;
}

.hero-points span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(236, 169, 109, 0.78), transparent);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(236, 169, 109, 0.2);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.78rem 1.28rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 400;
  cursor: pointer;
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background-color 200ms ease,
    box-shadow 200ms ease;
}

.button.primary {
  position: relative;
  isolation: isolate;
  color: #ffd2a8;
  background: rgba(94, 42, 15, 0.52);
  border-color: rgba(216, 155, 99, 0.46);
  box-shadow:
    inset 0 0 0 1px rgba(255, 218, 184, 0.04),
    0 8px 22px rgba(0, 0, 0, 0.22);
}

.button.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 0 18px 3px rgba(236, 169, 109, 0.5);
  opacity: 0.5;
  animation: buttonGlow 3.2s ease-in-out infinite;
}

.button.primary:hover,
.button.primary:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(240, 185, 129, 0.85);
  background: rgba(120, 55, 20, 0.62);
  box-shadow:
    inset 0 0 0 1px rgba(255, 218, 184, 0.08),
    0 14px 32px rgba(0, 0, 0, 0.3);
  outline: none;
}

.button.primary:hover::before,
.button.primary:focus-visible::before {
  animation: none;
  opacity: 1;
  box-shadow: 0 0 30px 6px rgba(236, 169, 109, 0.72);
}

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

@keyframes buttonGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.82; }
}

.button.ghost {
  color: #f0caa9;
  background: rgba(55, 23, 8, 0.52);
}

.button.ghost:hover,
.button.ghost:focus-visible {
  color: #ffe0bd;
  border-color: rgba(236, 169, 109, 0.6);
  background: rgba(78, 34, 12, 0.62);
  transform: translateY(-1px);
  outline: none;
}

.cart-fab {
  position: fixed;
  top: 6.75rem;
  right: 1.4rem;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid rgba(216, 155, 99, 0.45);
  border-radius: 50%;
  color: #efb981;
  background: rgba(20, 10, 5, 0.82);
  backdrop-filter: blur(10px);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.4),
    0 0 18px rgba(236, 169, 109, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.9);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms, box-shadow 200ms ease, border-color 200ms ease, color 200ms ease;
}

.cart-fab.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.cart-fab:hover,
.cart-fab:focus-visible {
  color: #ffe0bd;
  border-color: rgba(236, 169, 109, 0.82);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.45),
    0 0 26px rgba(236, 169, 109, 0.5);
  transform: translateY(0) scale(1.06);
  outline: none;
}

.cart-fab svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-0.5px);
}

.cart-fab-count[hidden] {
  display: none;
}

.cart-fab-count {
  position: absolute;
  top: -0.32rem;
  right: -0.32rem;
  display: grid;
  place-items: center;
  min-width: 1.28rem;
  height: 1.28rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #c8632b;
  color: #fff5ec;
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
}

.icon {
  display: grid;
  flex: 0 0 auto;
  width: 3.1rem;
  height: 3.1rem;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-strong);
  font-size: 1.25rem;
}

.section {
  width: min(var(--container), calc(100% - 2rem));
  margin: 5.4rem auto 6rem;
}

.catalog {
  position: relative;
  isolation: isolate;
  padding-top: 0.4rem;
}

.catalog::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -6rem;
  bottom: -5rem;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, rgba(9, 6, 4, 0), rgba(10, 4, 2, 0.46) 5.5rem),
    radial-gradient(circle at 22% 38%, rgba(151, 79, 28, 0.12), transparent 20rem),
    radial-gradient(circle at 82% 30%, rgba(236, 169, 109, 0.07), transparent 18rem),
    linear-gradient(180deg, rgba(14, 6, 3, 0.03), rgba(10, 4, 2, 0.54));
}

.catalog::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -6rem;
  bottom: -5rem;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-image:
    linear-gradient(rgba(255, 218, 184, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 218, 184, 0.012) 1px, transparent 1px);
  background-size: 88px 88px;
  opacity: 0.42;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent);
}

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

.section-heading h2,
.featured-copy h2,
.story h2,
.contact h2 {
  font-size: clamp(2.35rem, 4vw, 4rem);
  letter-spacing: 0.1em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(216, 155, 99, 0.22);
  border-radius: 0.4rem;
  background: linear-gradient(180deg, rgba(51, 22, 9, 0.72), rgba(23, 8, 4, 0.94));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
  border-color: rgba(236, 169, 109, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  transform: translateY(-4px);
}

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

.product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 50%;
}

.badge {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  color: #ffe0c3;
  background: rgba(85, 38, 15, 0.86);
  font-size: 0.68rem;
  font-weight: 500;
  z-index: 2;
}

.product-body {
  padding: 1rem 0.95rem 1.1rem;
}

.product-body h3 {
  font-size: 1.36rem;
  letter-spacing: 0.075em;
  font-weight: 400;
}

.product-body p {
  min-height: 2.55rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  line-height: 1.55;
}

.product-body strong {
  display: block;
  margin-top: 0.8rem;
  color: #f0c49e;
  font-size: 0.92rem;
  font-weight: 400;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1rem;
}

.qty-stepper {
  display: inline-grid;
  grid-template-columns: 2.35rem 2rem 2.35rem;
  align-items: center;
  width: max-content;
  min-height: 2.45rem;
  border: 1px solid rgba(216, 155, 99, 0.28);
  border-radius: 999px;
  background: rgba(5, 3, 2, 0.38);
  overflow: hidden;
}

.qty-stepper button {
  display: grid;
  height: 2.45rem;
  place-items: center;
  border: 0;
  color: var(--cream);
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.qty-stepper button:hover,
.qty-stepper button:focus-visible {
  color: #ffd2a8;
  background: rgba(216, 155, 99, 0.12);
  outline: none;
}

.qty-value {
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: center;
}

.product-actions .button {
  min-height: 2.45rem;
  padding-inline: 0.95rem;
}

.cart-link {
  display: inline-flex;
  width: max-content;
  margin-top: 0.8rem;
  color: #f0c49e;
  font-size: 0.82rem;
  font-weight: 400;
  border-bottom: 1px solid rgba(216, 155, 99, 0.42);
}

.cart-link:hover,
.cart-link:focus-visible {
  color: #ffd2a8;
  outline: none;
}

.cart-page {
  min-height: calc(100vh - 6rem);
  padding: 5rem 0;
}

.order-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(2rem, 5vw, 4rem);
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto 4rem;
  padding: 2.2rem;
  border: 1px solid rgba(216, 155, 99, 0.18);
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 16% 18%, rgba(216, 155, 99, 0.1), transparent 18rem),
    linear-gradient(135deg, rgba(44, 17, 7, 0.76), rgba(10, 4, 2, 0.86));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.order-intro h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.55rem);
  line-height: 1;
}

.order-intro h1 {
  font-size: clamp(1.9rem, 3.4vw, 3.2rem);
  line-height: 1;
}

.order-intro h2 span {
  display: block;
}

.order-intro h1 span {
  display: block;
}

.order-intro p:not(.eyebrow) {
  max-width: 440px;
  margin: 1.1rem 0 0;
  color: #ddb495;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.75;
}

.cart-panel {
  border: 1px solid rgba(216, 155, 99, 0.2);
  border-radius: 0.45rem;
  padding: 1.2rem;
  background: rgba(5, 3, 2, 0.34);
}

.cart-head,
.cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cart-head {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(216, 155, 99, 0.16);
}

.cart-head h3 {
  font-size: 1.38rem;
  letter-spacing: 0.08em;
}

.cart-head h2 {
  font-size: 1.38rem;
  letter-spacing: 0.08em;
}

.cart-head strong {
  color: #ffd2a8;
  font-size: 1.05rem;
  font-weight: 500;
}

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

.cart-empty {
  margin: 0;
  color: #c99a75;
}

.cart-row {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(216, 155, 99, 0.12);
}

.cart-row strong,
.cart-row span {
  display: block;
}

.cart-row strong {
  color: var(--cream);
  font-size: 0.95rem;
  font-weight: 500;
}

.cart-row span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.cart-row-actions {
  display: inline-grid;
  grid-template-columns: 2rem 1.4rem 2rem;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.cart-row-actions button {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(216, 155, 99, 0.36);
  border-radius: 50%;
  color: #ffd2a8;
  background: rgba(94, 42, 15, 0.52);
  cursor: pointer;
}

.cart-row-actions b {
  color: var(--cream);
  font-size: 0.92rem;
  font-weight: 500;
}

.order-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid rgba(216, 155, 99, 0.26);
  border-radius: 0.35rem;
  padding: 0.85rem 0.95rem;
  color: var(--cream);
  background: rgba(5, 3, 2, 0.42);
  font: inherit;
}

.order-form textarea,
.order-buttons {
  grid-column: 1 / -1;
}

.order-form textarea {
  min-height: 6rem;
  resize: vertical;
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--gold-strong);
  font-size: 0.82rem;
  font-weight: 400;
}

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

.form-status {
  grid-column: 1 / -1;
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.55;
}

.form-status[data-kind="ok"] {
  color: #9fd8a6;
}

.form-status[data-kind="error"] {
  color: #f0a98a;
}

.form-status[data-kind="pending"] {
  color: var(--muted);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(6, 3, 2, 0.72);
  backdrop-filter: blur(4px);
  animation: modalFade 180ms ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: min(28rem, 100%);
  padding: 2.6rem 2rem 2rem;
  text-align: center;
  border: 1px solid rgba(216, 155, 99, 0.28);
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 155, 99, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(40, 20, 9, 0.97), rgba(14, 6, 3, 0.98));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: modalPop 200ms ease;
}

.modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  color: var(--cream);
  background: rgba(216, 155, 99, 0.14);
  outline: none;
}

.modal-check {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 1.1rem;
  border: 1px solid rgba(159, 216, 166, 0.5);
  border-radius: 50%;
  background: rgba(80, 140, 90, 0.14);
}

.modal-check svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: #9fd8a6;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.modal-card h2 {
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.modal-card p {
  margin: 0.8rem 0 1.6rem;
  color: #ddb495;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.7;
}

.modal-card .button {
  min-width: 9rem;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalPop {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .modal-card {
    animation: none;
  }
}

.order-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.featured-product {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(2rem, 5vw, 4rem);
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto 0;
  padding: 4.4rem 0 4.7rem;
}

.featured-product::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    radial-gradient(58% 78% at 30% 44%, rgba(232, 196, 146, 0.11), transparent 72%),
    radial-gradient(42% 58% at 72% 62%, rgba(214, 161, 106, 0.07), transparent 70%),
    linear-gradient(180deg, #0a0604 0%, #0d0705 50%, #090503 100%);
  background-size: 200% 200%, 200% 200%, 100% 100%;
  animation: featuredShimmer 15s ease-in-out infinite alternate;
}

.featured-product::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    linear-gradient(90deg, transparent, rgba(216, 155, 99, 0.045), transparent),
    radial-gradient(circle at 50% 50%, rgba(216, 155, 99, 0.045) 0 1px, transparent 1px);
  background-size: 140% 100%, 42px 42px;
  opacity: 0.22;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
  animation: featuredTexture 22s linear infinite;
}

.gallery {
  display: block;
}

.large-product {
  border: 1px solid rgba(236, 169, 109, 0.24);
  border-radius: 0.45rem;
}

.large-product {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 50%;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.48),
    0 0 42px rgba(177, 86, 28, 0.08);
}

.breadcrumb {
  margin: 0 0 1rem;
  color: var(--gold-strong);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
}

.featured-copy {
  align-self: center;
}

.featured-copy p:not(.breadcrumb) {
  max-width: 500px;
  color: #dfb99b;
  line-height: 1.72;
}

@keyframes featuredShimmer {
  0% {
    background-position: 18% 38%, 82% 62%, center;
  }
  100% {
    background-position: 42% 56%, 58% 44%, center;
  }
}

@keyframes featuredTexture {
  from {
    background-position: -40% 0, 0 0;
  }
  to {
    background-position: 140% 0, 42px 42px;
  }
}

.story,
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 3rem;
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.4rem 0;
}

.contact {
  position: relative;
  grid-template-columns: 0.85fr 1.15fr;
  margin-bottom: 3rem;
  padding: 2.2rem 2rem;
  border: 1px solid rgba(216, 155, 99, 0.16);
  border-radius: 0.5rem;
  background:
    radial-gradient(circle at 20% 50%, rgba(216, 155, 99, 0.09), transparent 18rem),
    rgba(18, 7, 3, 0.58);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contact-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(216, 155, 99, 0.26);
  border-radius: 0.35rem;
  padding: 0.85rem 0.95rem;
  color: var(--cream);
  background: rgba(5, 3, 2, 0.38);
  font: inherit;
}

.contact-form textarea {
  grid-column: 1 / -1;
  min-height: 7rem;
  resize: vertical;
}

.contact-form button {
  justify-self: start;
}

.story p:last-child,
.contact p:not(.eyebrow) {
  margin: 0;
  color: #ddb495;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.75;
}

.story {
  border-top: 0;
}

.story h2 {
  max-width: 520px;
  font-size: clamp(1.65rem, 2.75vw, 2.65rem);
  line-height: 0.98;
}

.story p:last-child {
  max-width: 520px;
  padding-left: 1.4rem;
  border-left: 1px solid rgba(216, 155, 99, 0.32);
}

.contact h2 {
  max-width: 720px;
  font-size: clamp(1.55rem, 2.5vw, 2.35rem);
  line-height: 1;
}

.contact .button {
  min-width: 210px;
  border-radius: 999px;
}

.site-footer {
  margin-top: 5.5rem;
  border-top: 1px solid rgba(216, 155, 99, 0.16);
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 155, 99, 0.08), transparent 22rem),
    linear-gradient(180deg, rgba(12, 6, 3, 0.55), rgba(6, 3, 2, 0.92));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.25fr 1fr;
  gap: 2.4rem;
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.6rem 0 2.4rem;
}

.footer-icon {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
  margin-bottom: 0.85rem;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}

.footer-brand .brand-type strong,
.footer-brand .brand-type small {
  display: block;
  font-family: "Julius Sans One", "Optima", sans-serif;
  color: var(--cream);
  font-weight: 400;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  line-height: 1;
}

.footer-brand .brand-type strong {
  font-size: 1rem;
}

.footer-brand .brand-type small {
  margin-top: 0.4rem;
  color: var(--gold);
  font-size: 0.5rem;
}

.footer-brand p {
  max-width: 22rem;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 300;
  line-height: 1.7;
}

.footer-col h3 {
  margin: 0 0 1rem;
  color: var(--gold-strong);
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 0.62rem;
  color: #d9b393;
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.5;
}

.footer-col a {
  transition: color 160ms ease;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: #ffd9b8;
  outline: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.4rem 0 2.4rem;
  border-top: 1px solid rgba(216, 155, 99, 0.12);
  color: #a9825f;
  font-size: 0.78rem;
  font-weight: 300;
}

@media (prefers-reduced-motion: reduce) {
  .button.primary::before {
    animation: none;
    opacity: 0.55;
  }

  .featured-product::before,
  .featured-product::after {
    animation: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    position: relative;
    top: auto;
    grid-template-columns: 1fr;
    background: #090604;
  }

  .main-nav {
    grid-column: 1 / -1;
    justify-content: flex-end;
    flex-wrap: wrap;
    row-gap: 0.35rem;
  }

  .hero {
    min-height: 580px;
  }

  .hero-content {
    padding-top: 6rem;
    padding-bottom: 5.8rem;
    margin-left: 1rem;
  }

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

  .featured-product,
  .order-section,
  .story,
  .contact {
    grid-template-columns: 1fr;
  }

  .contact .button {
    justify-self: start;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .cart-fab {
    top: 1.3rem;
    right: 1.1rem;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    row-gap: 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 260ms ease;
  }

  .main-nav.is-open {
    max-height: 26rem;
    margin-top: 0.7rem;
  }

  .main-nav a {
    padding: 0.85rem 0.9rem;
    border-radius: 0.55rem;
  }

  .main-nav .social-icon {
    width: 2.7rem;
    height: 2.7rem;
    margin: 0.35rem 0 0;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 1rem;
  }

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

  .hero-content {
    width: calc(100% - 2rem);
    margin-left: 1rem;
    padding: 4.5rem 0 5.8rem;
  }

  h1 {
    font-size: 2.35rem;
  }

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

  .product-actions,
  .order-form {
    grid-template-columns: 1fr;
  }

  .order-buttons {
    flex-direction: column;
  }

  .order-buttons .button {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }

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