:root {
  --navy: #101c2c;
  --cream: #ffffff;
  --beige: #e6ddcf;
  --forest: #101c2c;
  --gold: #c9a24d;
  --text: #101c2c;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Work Sans", "Helvetica Neue", Arial, sans-serif;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--navy);
  line-height: 1.8;
}

body.dark-page {
  color: #f6f2ea;
  background: #0b1c2d;
}

.page-loader {
  position: fixed;
  inset: 0;
  background: #0b1c2d;
  display: grid;
  place-items: center;
  z-index: 100;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  animation: loader-fade-out 0.4s ease 1.6s forwards;
}

.page-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  width: auto;
  margin: 2rem;
  font-family: var(--serif);
  font-size: 3.6em;
  font-weight: 500;
  user-select: none;
  color: #f6f2ea;
  letter-spacing: 0.3em;
}

.loader {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 1;
  background-color: transparent;
  mask: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 6px,
    black 7px,
    black 8px
  );
}

.loader::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(246, 242, 234, 0.9) 0%, transparent 55%),
    radial-gradient(circle at 45% 45%, rgba(255, 255, 255, 0.9) 0%, transparent 45%),
    radial-gradient(circle at 55% 55%, rgba(230, 221, 207, 0.9) 0%, transparent 45%);
  mask: radial-gradient(
    circle at 50% 50%,
    transparent 0%,
    transparent 10%,
    black 25%
  );
  animation:
    transform-animation 1.2s linear forwards,
    opacity-animation 1.2s linear forwards;
  animation-timing-function: cubic-bezier(0.6, 0.8, 0.5, 1);
}

.loader-letter {
  display: inline-block;
  opacity: 0;
  animation: loader-letter-anim 1.2s linear forwards;
  z-index: 2;
}

.loader-letter:nth-child(1) { animation-delay: 0.06s; }
.loader-letter:nth-child(2) { animation-delay: 0.14s; }
.loader-letter:nth-child(3) { animation-delay: 0.22s; }
.loader-letter:nth-child(4) { animation-delay: 0.3s; }
.loader-letter:nth-child(5) { animation-delay: 0.38s; }
.loader-letter:nth-child(6) { animation-delay: 0.46s; }
.loader-letter:nth-child(7) { animation-delay: 0.54s; }

@keyframes transform-animation {
  0% { transform: translate(-55%); }
  100% { transform: translate(55%); }
}

@keyframes opacity-animation {
  0%, 100% { opacity: 0; }
  15% { opacity: 1; }
  65% { opacity: 0; }
}

@keyframes loader-letter-anim {
  0% { opacity: 0; }
  5% {
    opacity: 1;
    text-shadow: 0 0 6px rgba(246, 242, 234, 0.6);
    transform: scale(1.05) translateY(-1px);
  }
  20% { opacity: 0.2; }
  100% { opacity: 0; }
}

@keyframes loader-fade-out {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

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

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

.site-header {
  padding: 12px 4vw 0;
  background: #0b1c2d;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(201, 162, 77, 0.35);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(17, 26, 42, 0.65);
  border-bottom: 1px solid rgba(183, 162, 122, 0.35);
  padding-bottom: 10px;
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0 10px;
}

.logo {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 28px;
  width: auto;
  display: block;
}

.logo-text {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f6f2ea;
}

.nav-links,
.nav-meta {
  display: flex;
  gap: 22px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  align-items: center;
  color: #f6f2ea;
}

.nav-meta {
  gap: 18px;
  margin-left: auto;
}

.nav-icons {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #f6f2ea;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-icon-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
}

.nav-icon:hover {
  color: #c9a24d;
  transform: translateY(-1px);
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 28, 45, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 120;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-panel {
  background: #f6f2ea;
  color: #0b1c2d;
  min-height: 55vh;
  max-height: 70vh;
  padding: 110px 6vw 60px;
  box-shadow: 0 30px 60px rgba(5, 12, 20, 0.35);
  transform: translateY(-10px);
  transition: transform 0.25s ease;
  position: relative;
  z-index: 121;
  pointer-events: auto;
}

.search-overlay.is-open .search-panel {
  transform: translateY(0);
}

.search-panel-inner {
  max-width: 1000px;
  margin: 0 auto;
  pointer-events: auto;
}

.search-panel .site-search {
  width: 100%;
  max-width: 100%;
  border: none;
  padding-right: 0;
  display: block;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 4px 2px;
  border-bottom: 2px solid rgba(11, 28, 45, 0.8);
  position: relative;
}

.search-field svg {
  width: 22px;
  height: 22px;
  color: rgba(11, 28, 45, 0.6);
  flex: 0 0 auto;
  pointer-events: none;
}

.search-panel .input {
  color: #0b1c2d;
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 12px;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(11, 28, 45, 0.25);
  min-height: 46px;
  line-height: 1.2;
  outline: none;
  display: block;
  pointer-events: auto;
  border-radius: 6px;
  cursor: text;
  position: relative;
  z-index: 2;
}

.search-placeholder {
  position: absolute;
  left: 44px;
  color: #0b1c2d;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 20px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.search-field input:focus + .search-placeholder,
.search-field input:not(:placeholder-shown) + .search-placeholder {
  opacity: 0;
}

.search-panel .input:focus {
  background: #0b1c2d;
  color: #f6f2ea;
  border-color: rgba(11, 28, 45, 0.7);
}

.search-panel .input:focus::placeholder {
  color: rgba(246, 242, 234, 0.55);
}

.search-panel .search-field {
  position: relative;
  z-index: 2;
}

.search-panel .site-search {
  padding: 12px 0 6px;
}

.search-panel .search-field {
  padding-left: 2px;
  padding-right: 2px;
}

.search-panel .input-border {
  display: none;
}

.search-panel .input-alt {
  box-shadow: none;
}

.search-panel .input::placeholder {
  color: #0b1c2d;
  opacity: 1;
}

.search-panel .input::-webkit-input-placeholder {
  color: #0b1c2d;
  opacity: 1;
}

.search-panel .input::-moz-placeholder {
  color: #0b1c2d;
  opacity: 1;
}

.search-panel .input:-ms-input-placeholder {
  color: #0b1c2d;
}

.search-panel .input::-ms-input-placeholder {
  color: #0b1c2d;
}

.search-panel .input-border {
  background: #0b1c2d;
  height: 2px;
}

.search-close {
  position: absolute;
  top: 32px;
  right: 6vw;
  background: none;
  border: 1px solid rgba(11, 28, 45, 0.2);
  color: #0b1c2d;
  padding: 8px 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  cursor: pointer;
}

.search-trends {
  margin-top: 32px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.search-trends strong {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(11, 28, 45, 0.2);
  padding: 6px 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
}

.search-categories {
  margin-top: 48px;
}

.search-live-results {
  margin-top: 18px;
  display: grid;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.search-result-item {
  color: #0b1c2d;
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 28, 45, 0.15);
  padding-bottom: 6px;
}

.search-result-item:hover {
  color: #7b5c1a;
}

.search-result-empty {
  color: rgba(11, 28, 45, 0.6);
}

.search-categories h3 {
  font-family: var(--serif);
  font-size: 32px;
  margin-bottom: 20px;
}

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

.search-category-card {
  position: relative;
  min-height: 140px;
  background: #d9d0c2;
  border: 1px solid rgba(11, 28, 45, 0.15);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  font-family: var(--serif);
  font-size: 20px;
  color: #0b1c2d;
  text-decoration: none;
}

.search-category-card span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .search-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .search-panel {
    padding-top: 100px;
  }

  .search-categories-grid {
    grid-template-columns: 1fr;
  }
}

.user-profile {
  width: 108px;
  height: 38px;
  border-radius: 40px;
  border: 1px solid rgba(246, 242, 234, 0.4);
  background: linear-gradient(135deg, #c9a24d, #f6f2ea);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.3s ease;
  overflow: hidden;
  text-decoration: none;
}

.user-profile:focus,
.user-profile:hover {
  border-color: rgba(201, 162, 77, 0.8);
  box-shadow: 0 0 10px rgba(201, 162, 77, 0.35);
  outline: none;
}

.user-profile .IconContainer {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: 0.3s ease;
}

.user-profile .icon {
  width: 14px;
  height: 14px;
  fill: #0b1c2d;
}

.user-profile .text {
  margin: 0;
  color: #0b1c2d;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: 0.3s ease;
}

.user-profile:hover .IconContainer {
  filter: brightness(1.05);
}

.account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.account-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  min-width: 180px;
  padding: 12px 14px;
  background: #0b1c2d;
  border: 1px solid rgba(201, 162, 77, 0.35);
  display: none;
  gap: 10px;
  z-index: 30;
}

.account-dropdown a {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f6f2ea;
}

.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown {
  display: grid;
}

body:not(.logged-in) .account-menu:hover .account-dropdown,
body:not(.logged-in) .account-menu:focus-within .account-dropdown {
  display: none;
}

.account-dropdown[hidden] {
  display: none !important;
}

body.logged-in .account-text {
  display: none;
}

.auth-alt {
  font-size: 12px;
  margin-top: 14px;
  color: rgba(246, 242, 234, 0.7);
  text-align: center;
}

.auth-alt a {
  color: #c9a24d;
}

.site-search {
  --border-height: 2px;
  --border-before-color: rgba(246, 242, 234, 0.3);
  --border-after-color: rgba(246, 242, 234, 0.3);
  position: relative;
  width: 200px;
  display: flex;
  align-items: center;
}

.site-search {
  padding-right: 18px;
  border-right: 1px solid rgba(246, 242, 234, 0.3);
}

.account-menu {
  padding-left: 18px;
  border-left: 1px solid rgba(246, 242, 234, 0.3);
}

.site-search .input {
  color: #f6f2ea;
  font-size: 11px;
  background-color: transparent;
  width: 100%;
  box-sizing: border-box;
  padding-inline: 8px 28px;
  padding-block: 4px;
  height: 32px;
  border: none;
  border-bottom: var(--border-height) solid var(--border-before-color);
  box-shadow: none;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.site-search .input::placeholder {
  color: rgba(246, 242, 234, 0.6);
}

.site-search .input:focus {
  outline: none;
}

.site-search .input-border {
  position: absolute;
  background: var(--border-after-color);
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  transition: width 0.4s cubic-bezier(0.42, 0, 0.58, 1);
  max-width: 100%;
}

.site-search .input:focus ~ .input-border {
  width: 100%;
}


.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1px solid rgba(183, 162, 122, 0.35);
  box-shadow: 0 12px 24px rgba(17, 26, 42, 0.12);
  display: grid;
  gap: 10px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  z-index: 20;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown a {
  font-size: 11px;
  letter-spacing: 0.22em;
}

.nav-links a,
.nav-meta a {
  padding: 6px 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 32px;
  color: #f6f2ea;
}

.nav-links a::after,
.nav-meta a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.4s ease;
}

.nav-links a:hover::after,
.nav-meta a:hover::after {
  width: 100%;
}

.cart-toggle {
  position: relative;
  padding-right: 18px;
}

.cart-count {
  position: absolute;
  right: 0;
  top: -4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--navy);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding: 0 4vw;
  margin-top: 16px;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(120deg, rgba(17, 26, 42, 0.7), rgba(27, 42, 36, 0.5)),
    radial-gradient(circle at 30% 20%, rgba(246, 241, 231, 0.3), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='800'%3E%3Crect width='1200' height='800' fill='%23101822'/%3E%3Cpath d='M0 520 C300 460 480 640 820 610 C1040 590 1120 520 1200 480 L1200 800 L0 800Z' fill='%231b2a24'/%3E%3Cpath d='M0 420 C220 380 500 520 760 480 C980 450 1100 380 1200 340 L1200 800 L0 800Z' fill='%232b3a2f'/%3E%3Ccircle cx='220' cy='180' r='120' fill='%23202a38'/%3E%3Ccircle cx='900' cy='200' r='160' fill='%23151c28'/%3E%3C/svg%3E");
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 520px;
  color: var(--cream);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.7);
  margin: 0 0 16px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 72px);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.subline {
  font-size: 16px;
  max-width: 420px;
  margin-bottom: 24px;
}

.text-link {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 6px;
}

.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
}

.editorial {
  padding: 80px 4vw;
}

.editorial-grid {
  display: grid;
  gap: 60px;
}

.editorial-item {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.editorial-item:nth-child(even) {
  grid-template-columns: 0.9fr 1.1fr;
}

.image-block,
.journal-image {
  background-color: var(--forest);
  background-size: cover;
  background-position: center;
}

.image-block {
  min-height: 360px;
  background-image: linear-gradient(110deg, rgba(17, 26, 42, 0.7), rgba(27, 42, 36, 0.3)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900'%3E%3Crect width='1200' height='900' fill='%231b2a24'/%3E%3Cpath d='M0 620 C300 520 520 680 860 640 C1040 610 1120 560 1200 520 L1200 900 L0 900Z' fill='%2311192a'/%3E%3Cpath d='M0 480 C240 430 540 570 820 520 C1010 480 1120 430 1200 400 L1200 900 L0 900Z' fill='%2326332c'/%3E%3C/svg%3E");
}

.image-block.alt {
  background-image: linear-gradient(120deg, rgba(27, 42, 36, 0.7), rgba(17, 26, 42, 0.3)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900'%3E%3Crect width='1200' height='900' fill='%23111822'/%3E%3Cpath d='M0 580 C280 520 500 620 820 590 C1020 570 1120 520 1200 480 L1200 900 L0 900Z' fill='%231b2a24'/%3E%3Ccircle cx='300' cy='280' r='160' fill='%2322302b'/%3E%3C/svg%3E");
}

.editorial-copy h2,
.section-head h2,
.heritage-copy h2,
.boutique-content h2,
.site-footer h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 44px);
  margin: 0 0 16px;
  letter-spacing: 0.04em;
  color: var(--navy);
}

.dark-page .section-head h2,
.dark-page .editorial-copy h2,
.dark-page .about-text h2,
.dark-page .legal-page h2,
.dark-page .contact-hero h2 {
  color: #f6f2ea;
}

.dark-page .section-head p,
.dark-page .editorial-copy p {
  color: rgba(246, 242, 234, 0.7);
}

.editorial-copy p,
.section-head p,
.heritage-copy p,
.boutique-content p {
  font-size: 15px;
  margin-bottom: 18px;
}

.collections {
  padding: 40px 4vw 80px;
  background: #f3ede2;
}

.section-head {
  max-width: 680px;
  margin-bottom: 64px;
}

.section-head p {
  max-width: 560px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: stretch;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 6px;
}

.product-card a {
  display: block;
}

.product-media {
  width: 100%;
  height: 360px;
  background: #e7dfd2;
  overflow: hidden;
  display: block;
  margin-bottom: 18px;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 8px 0 4px;
  min-height: 56px;
  line-height: 1.3;
  max-height: 2.6em;
  overflow: hidden;
}

.product-card .price {
  font-size: 13px;
  letter-spacing: 0.12em;
  color: rgba(17, 26, 42, 0.7);
  text-transform: uppercase;
  min-height: 22px;
  margin: 0;
}

.product-card button,
.product-info button.add-to-bag {
  margin-top: 14px;
  background: transparent;
  border: 1px solid rgba(17, 26, 42, 0.4);
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 11px;
  cursor: pointer;
}

.product-card button:hover,
.product-info button.add-to-bag:hover {
  border-color: var(--gold);
}

.option-group {
  margin: 16px 0;
}

.option-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.option-pill {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(17, 26, 42, 0.35);
  background: transparent;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.option-pill.is-selected {
  border-color: var(--gold);
  color: var(--navy);
  background: rgba(183, 162, 122, 0.15);
}

.product-card .text-link {
  display: inline-block;
  margin-top: auto;
  min-height: 18px;
}

.product-detail {
  padding: 60px 4vw 90px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

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

.product-gallery img {
  width: 100%;
  display: block;
}

.product-info h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 48px);
  margin: 0 0 10px;
}

.product-info .price {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(17, 26, 42, 0.7);
  margin-bottom: 16px;
}

.product-info .detail-copy {
  margin-bottom: 18px;
}

.size-guide-toggle {
  background: transparent;
  border: 1px solid rgba(17, 26, 42, 0.3);
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  cursor: pointer;
}

.size-guide {
  position: fixed;
  inset: 0;
  background: rgba(17, 26, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.size-guide.is-open {
  display: flex;
}

.size-guide-panel {
  background: var(--cream);
  padding: 32px;
  max-width: 520px;
  width: 90%;
}

.size-guide-panel h3 {
  font-family: var(--serif);
  margin-top: 0;
}

.size-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.size-guide-table th,
.size-guide-table td {
  border-bottom: 1px solid rgba(17, 26, 42, 0.15);
  padding: 8px 4px;
  text-align: left;
}

.mini-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 26, 42, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 15;
}

.mini-cart {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(360px, 90vw);
  background: var(--cream);
  border-left: 1px solid rgba(17, 26, 42, 0.2);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 16;
  display: flex;
  flex-direction: column;
}

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

.mini-cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mini-cart header {
  padding: 22px;
  border-bottom: 1px solid rgba(17, 26, 42, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-cart-close,
.size-guide-close,
.remove-item {
  background: transparent;
  border: 1px solid rgba(17, 26, 42, 0.25);
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.mini-cart h3 {
  margin: 0;
  font-family: var(--serif);
}

.mini-cart .cart-items {
  padding: 18px 22px;
  flex: 1;
  overflow-y: auto;
}

.mini-cart .cart-item {
  margin-bottom: 18px;
  font-size: 13px;
}

.mini-cart .cart-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
}

.mini-cart footer {
  padding: 18px 22px 24px;
  border-top: 1px solid rgba(17, 26, 42, 0.15);
}

.mini-cart .cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-page {
  padding: 60px 4vw 90px;
}

.cart-card {
  position: relative;
  width: min(720px, 100%);
  height: 340px;
  border: 1px solid rgba(17, 26, 42, 0.25);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(246, 241, 231, 0.85);
  margin-top: 24px;
}

.cart-card-bg {
  position: absolute;
  inset: 0;
  padding: 10px;
  background: rgba(183, 162, 122, 0.15);
}

.cart-card-layer {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  border-top-right-radius: 120px;
  border-bottom-right-radius: 60px;
  background: #222;
}

.cart-card-body {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  backdrop-filter: blur(10px);
}

.cart-orb {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1b2a24, #b7a27a);
  animation: cart-orb-spin 12s linear infinite;
}

.cart-card-foreground {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(255, 255, 255, 0.75);
}

.cart-panel {
  width: 60%;
  padding: 16px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  color: rgba(246, 241, 231, 0.9);
}

.cart-panel-title {
  font-family: var(--serif);
  font-size: 22px;
  color: rgba(246, 241, 231, 0.95);
}

.cart-panel-subtitle {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.7);
  margin-bottom: 10px;
}

.cart-panel-items {
  font-size: 12px;
  color: rgba(246, 241, 231, 0.85);
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(246, 241, 231, 0.15);
}

.cart-line:last-child {
  border-bottom: none;
}

.cart-panel-footer {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(246, 241, 231, 0.6);
  text-transform: uppercase;
}

.cart-side {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.2em;
}

.cart-checkout {
  margin-top: auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 231, 0.35);
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 0.12em;
}

@keyframes cart-orb-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cart-page .cart-total {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.cart-table th,
.cart-table td {
  padding: 12px 6px;
  border-bottom: 1px solid rgba(17, 26, 42, 0.15);
  text-align: left;
}

.cart-qty {
  width: 60px;
}

.collection-card h3,
.journal-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 16px 0 6px;
}

.collection-card p,
.journal-card p {
  font-size: 13px;
  margin: 0;
  color: rgba(17, 26, 42, 0.7);
}

.product-image {
  height: 260px;
  background-image: linear-gradient(150deg, rgba(17, 26, 42, 0.7), rgba(223, 210, 191, 0.4)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='900'%3E%3Crect width='800' height='900' fill='%2324313f'/%3E%3Cpath d='M0 620 C200 560 420 680 640 650 C740 630 780 600 800 580 L800 900 L0 900Z' fill='%231b2a24'/%3E%3Crect x='140' y='180' width='520' height='520' fill='%2336454e'/%3E%3C/svg%3E");
  background-size: cover;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.product-image.alt {
  background-image: linear-gradient(140deg, rgba(27, 42, 36, 0.7), rgba(223, 210, 191, 0.3)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='900'%3E%3Crect width='800' height='900' fill='%2311192a'/%3E%3Crect x='120' y='160' width='560' height='560' fill='%23253342'/%3E%3Cpath d='M0 660 C250 590 480 720 700 690 C760 680 790 660 800 640 L800 900 L0 900Z' fill='%2322302b'/%3E%3C/svg%3E");
}

.product-image.third {
  background-image: linear-gradient(160deg, rgba(17, 26, 42, 0.75), rgba(27, 42, 36, 0.4)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='900'%3E%3Crect width='800' height='900' fill='%23141b28'/%3E%3Crect x='120' y='120' width='560' height='600' fill='%232c3a31'/%3E%3Ccircle cx='400' cy='360' r='180' fill='%23283842'/%3E%3C/svg%3E");
}

.product-image.fourth {
  background-image: linear-gradient(160deg, rgba(17, 26, 42, 0.75), rgba(223, 210, 191, 0.25)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='900'%3E%3Crect width='800' height='900' fill='%231b2430'/%3E%3Crect x='140' y='140' width='520' height='600' fill='%2326332c'/%3E%3Cpath d='M0 680 C240 600 520 720 760 690 C780 688 790 680 800 670 L800 900 L0 900Z' fill='%233b4a43'/%3E%3C/svg%3E");
}

.collection-card:hover .product-image {
  transform: scale(1.02);
  opacity: 0.92;
}

.collection-link {
  display: block;
}


.journal {
  padding: 40px 4vw 90px;
}

.journal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.journal-image {
  height: 240px;
  background-image: linear-gradient(160deg, rgba(17, 26, 42, 0.7), rgba(223, 210, 191, 0.3)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Crect width='800' height='600' fill='%2311192a'/%3E%3Ccircle cx='260' cy='260' r='160' fill='%23253342'/%3E%3Crect x='360' y='160' width='260' height='300' fill='%2322302b'/%3E%3C/svg%3E");
}

.journal-image.alt {
  background-image: linear-gradient(160deg, rgba(27, 42, 36, 0.7), rgba(246, 241, 231, 0.2)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Crect width='800' height='600' fill='%231b2a24'/%3E%3Crect x='180' y='140' width='440' height='320' fill='%232f3f47'/%3E%3Ccircle cx='580' cy='300' r='140' fill='%23263630'/%3E%3C/svg%3E");
}

.journal-image.third {
  background-image: linear-gradient(160deg, rgba(17, 26, 42, 0.7), rgba(223, 210, 191, 0.3)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='600'%3E%3Crect width='800' height='600' fill='%23101822'/%3E%3Cpath d='M0 420 C240 380 480 520 720 480 C770 470 790 450 800 430 L800 600 L0 600Z' fill='%2322302b'/%3E%3Crect x='120' y='140' width='560' height='260' fill='%23253342'/%3E%3C/svg%3E");
}

.about-hero {
  padding: 60px 4vw 80px;
  display: grid;
  gap: 32px;
}

.about-hero-media {
  min-height: 320px;
  border-radius: 18px;
  background: linear-gradient(130deg, rgba(16, 28, 44, 0.8), rgba(230, 221, 207, 0.2));
}

.about-hero-copy h1,
.about-text h2,
.legal-page h2,
.contact-hero h2 {
  font-family: var(--serif);
  letter-spacing: 0.04em;
}

.about-hero-copy p,
.about-text p,
.legal-copy p,
.contact-details p {
  color: rgba(246, 242, 234, 0.75);
}

.about-section {
  padding: 56px 4vw;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.about-grid.alt {
  grid-template-columns: 1fr 1fr;
}

.about-image {
  min-height: 260px;
  border-radius: 18px;
  background: linear-gradient(140deg, rgba(16, 28, 44, 0.85), rgba(230, 221, 207, 0.15));
}

.about-image.alt {
  background: linear-gradient(140deg, rgba(11, 28, 45, 0.9), rgba(201, 162, 77, 0.15));
}

.about-image.third {
  background: linear-gradient(140deg, rgba(16, 28, 44, 0.85), rgba(184, 181, 174, 0.2));
}

.contact-hero {
  padding: 70px 4vw 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-top: 30px;
}

.contact-form {
  border: 1px solid rgba(246, 242, 234, 0.2);
  border-radius: 16px;
  padding: 24px;
  background: rgba(11, 28, 45, 0.45);
}

.contact-details h3 {
  color: #f6f2ea;
}

.contact-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: rgba(246, 242, 234, 0.8);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(246, 242, 234, 0.35);
  padding: 10px 12px;
  color: #f6f2ea;
  font-family: var(--sans);
  margin-top: 8px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(246, 242, 234, 0.5);
}

.contact-form button {
  margin-top: 14px;
  border: 1px solid #c9a24d;
  background: transparent;
  color: #f6f2ea;
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
}

.auth-page,
.account-page {
  padding: 40px 4vw;
}

.account-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 36px;
  align-items: start;
}

.account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 24px;
  border-right: 1px solid rgba(201, 162, 77, 0.45);
}

.account-sidebar a {
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.85);
  text-decoration: none;
}

.account-sidebar a.active,
.account-sidebar a:hover {
  color: #c9a24d;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 520px;
  margin: 0 auto;
  min-height: calc(100vh - 220px);
  place-items: center;
}

.auth-card {
  border: 1px solid rgba(246, 242, 234, 0.2);
  border-radius: 16px;
  padding: 24px;
  background: rgba(11, 28, 45, 0.4);
  width: 100%;
}

.auth-card.is-hidden {
  display: none;
}

.auth-card h3 {
  font-family: var(--serif);
  margin-top: 0;
}

.auth-card label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.auth-card input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(246, 242, 234, 0.35);
  padding: 10px 12px;
  color: #f6f2ea;
  font-family: var(--sans);
  margin-top: 8px;
}

.auth-card button {
  margin: 16px auto 0;
  border: 1px solid #c9a24d;
  background: transparent;
  color: #f6f2ea;
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  display: block;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.account-card {
  border: 1px solid rgba(246, 242, 234, 0.2);
  border-radius: 16px;
  padding: 22px;
  background: rgba(11, 28, 45, 0.4);
}

.account-form {
  display: grid;
  gap: 14px;
}

.account-form label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.account-form input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(246, 242, 234, 0.35);
  padding: 10px 12px;
  color: #f6f2ea;
  font-family: var(--sans);
  margin-top: 8px;
}

.account-form button {
  border: 1px solid #c9a24d;
  background: transparent;
  color: #f6f2ea;
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  justify-self: start;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.address-list {
  display: grid;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.address-item {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(246, 242, 234, 0.2);
  padding: 12px;
  border-radius: 12px;
}

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

.address-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.form-notice {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.8);
  margin-top: 10px;
}

.request-access {
  padding: 40px 4vw 90px;
  max-width: 1180px;
  margin: 0 auto;
}

.request-form {
  margin-top: 28px;
  display: grid;
  gap: 16px;
  border: 1px solid rgba(201, 162, 77, 0.35);
  border-radius: 22px;
  padding: 32px;
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 162, 77, 0.08), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(246, 242, 234, 0.06), transparent 45%),
    rgba(11, 28, 45, 0.65);
  box-shadow:
    inset 0 0 24px rgba(201, 162, 77, 0.08),
    0 20px 40px rgba(5, 12, 20, 0.4);
  position: relative;
}

.request-form .form-row label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(246, 242, 234, 0.35);
  padding: 10px 12px;
  color: #f6f2ea;
  font-family: var(--sans);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  outline: none;
  border-color: rgba(201, 162, 77, 0.7);
  box-shadow: 0 0 0 2px rgba(201, 162, 77, 0.15);
}

.request-form textarea {
  resize: vertical;
  min-height: 140px;
}

.request-form button {
  margin-top: 6px;
  border: 1px solid #c9a24d;
  background: transparent;
  color: #f6f2ea;
  padding: 10px 16px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  cursor: pointer;
  justify-self: start;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.request-form button:hover {
  border-color: rgba(201, 162, 77, 0.9);
  color: #f6f2ea;
  box-shadow: 0 0 12px rgba(201, 162, 77, 0.25);
}

.request-form .form-note {
  font-size: 12px;
  color: rgba(246, 242, 234, 0.6);
  margin: 0;
}

.legal-page {
  padding: 70px 4vw 100px;
}

.legal-copy {
  max-width: 720px;
  margin-bottom: 40px;
}

.network-membership {
  padding: 40px 4vw 90px;
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.membership-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 18px;
  background: #171f2c;
  color: #f6f1e7;
  overflow: hidden;
  border: 1px solid rgba(183, 162, 122, 0.35);
  box-shadow: inset 0 0 24px rgba(246, 241, 231, 0.05);
}

.membership-card.featured {
  border-color: rgba(183, 162, 122, 0.35);
  background: #171f2c;
}

.membership-card.featured .membership-title {
  color: #f6f2ea;
}

.membership-card {
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.membership-card:hover,
.membership-card.is-selected {
  border-color: #c9a24d;
  box-shadow: 0 0 18px rgba(201, 162, 77, 0.35);
}

.membership-card:hover .membership-title,
.membership-card.is-selected .membership-title {
  color: #f6f2ea;
}

.membership-border {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  border: 1px solid rgba(246, 241, 231, 0.12);
  pointer-events: none;
}

.membership-title {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.08em;
}

.membership-subtitle {
  font-size: 12px;
  color: rgba(246, 241, 231, 0.7);
  margin-top: 6px;
}

.membership-price {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.85);
  margin-top: 6px;
}

.membership-line {
  width: 100%;
  border: none;
  height: 1px;
  background: rgba(246, 241, 231, 0.15);
}

.membership-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.membership-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.membership-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 231, 0.4);
  background: rgba(183, 162, 122, 0.4);
  box-shadow: inset 0 0 6px rgba(246, 241, 231, 0.3);
}

.membership-button {
  margin-top: auto;
  border: 1px solid rgba(246, 241, 231, 0.45);
  background: transparent;
  color: #f6f1e7;
  padding: 10px 12px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}

.membership-button:hover {
  border-color: var(--gold);
}

.membership-matrix {
  margin-top: 36px;
  border: 1px solid rgba(183, 162, 122, 0.35);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(11, 28, 45, 0.35);
}

.matrix-row {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  align-items: center;
  border-bottom: 1px solid rgba(246, 241, 231, 0.1);
}

.matrix-row:last-child {
  border-bottom: none;
}

.matrix-head {
  background: rgba(20, 34, 51, 0.8);
}

.matrix-cell {
  padding: 16px 18px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.85);
}

.matrix-feature {
  position: relative;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246, 241, 231, 0.95);
  transition: color 0.2s ease;
}

.matrix-tier {
  text-align: center;
}

.tier-title {
  display: block;
  font-size: 12px;
  letter-spacing: 0.24em;
}

.tier-price {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(246, 241, 231, 0.7);
}

.feature-mark {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 231, 0.5);
}

.feature-mark.is-on {
  background: rgba(201, 162, 77, 0.9);
  border-color: rgba(201, 162, 77, 0.9);
}

.matrix-cell:not(.matrix-feature) {
  text-align: center;
}

.feature-tooltip {
  position: absolute;
  left: 12px;
  top: 100%;
  margin-top: 10px;
  background: #0b1c2d;
  border: 1px solid rgba(201, 162, 77, 0.4);
  color: #f6f2ea;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: none;
  width: min(320px, 80vw);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 5;
}

.matrix-feature:hover .feature-tooltip,
.matrix-feature.is-open .feature-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.matrix-feature:hover {
  color: #f6f2ea;
}

.matrix-feature:hover::after,
.matrix-feature.is-open::after {
  content: "";
  position: absolute;
  inset: -6px -10px;
  border-radius: 10px;
  border: 1px solid rgba(201, 162, 77, 0.7);
  box-shadow: 0 0 10px rgba(201, 162, 77, 0.35);
  pointer-events: none;
}

.matrix-head .matrix-feature:hover::after,
.matrix-head .matrix-feature.is-open::after {
  content: none;
  border: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  .matrix-row {
    grid-template-columns: 1.6fr repeat(3, 1fr);
  }
}

@media (max-width: 700px) {
  .membership-matrix {
    border-radius: 14px;
  }
  .matrix-row {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }
  .matrix-feature {
    font-size: 11px;
    letter-spacing: 0.16em;
  }
}


.site-footer {
  padding: 60px 4vw 80px;
  background: #0b1c2d;
  color: #f6f2ea;
  border-top: 1px solid #c9a24d;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.footer-brand .footer-logo {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, 0.7);
}

.footer-nav {
  display: grid;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.footer-nav a {
  color: inherit;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(246, 242, 234, 0.5);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #f6f2ea;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.social-link:hover {
  color: #c9a24d;
  border-color: #c9a24d;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .nav-links,
  .nav-meta {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .editorial-item,
  .heritage-inner {
    grid-template-columns: 1fr;
  }

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

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

  .nav-links {
    gap: 14px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .account-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px 18px;
    padding-right: 0;
    padding-bottom: 18px;
    border-right: none;
    border-bottom: 1px solid rgba(201, 162, 77, 0.35);
  }

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

@media (max-width: 700px) {
  .hero {
    min-height: 70vh;
  }

  .top-bar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .nav {
    gap: 14px;
  }

  .nav-links,
  .nav-meta {
    font-size: 11px;
  }

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

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

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

  .cart-card {
    height: auto;
  }

  .cart-card-foreground {
    flex-direction: column;
  }

  .cart-panel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .collection-card:hover .product-image {
    transition: none;
  }

  .reveal {
    transform: none;
  }

  .loader,
  .loader::after,
  .loader-letter {
    animation: none !important;
  }
}
