:root {
  --ink: #252424;
  --ink-soft: #636060;
  --paper: #f7f3ee;
  --paper-deep: #eee7dd;
  --white: #ffffff;
  --gold: #9f8156;
  --rose: #ad6f69;
  --plum: #292725;
  --teal: #287f8f;
  --line: rgba(37, 36, 36, 0.2);
  --shadow: 0 24px 70px rgba(27, 26, 25, 0.16);
  --shell: min(1600px, calc(100vw - 48px));
}

html {
  scroll-padding-top: 76px;
}

body {
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 2px;
}

.promo-bar {
  display: block;
  min-height: 35px;
  padding: 0;
  background: var(--teal);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.promo-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 35px;
}

.promo-inner > p {
  grid-column: 2;
  margin: 0;
  font-family: var(--serif);
  font-size: 13px;
}

.promo-controls {
  display: flex;
  grid-column: 3;
  align-items: center;
  justify-self: end;
  gap: 12px;
  font-size: 11px;
}

.promo-controls a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.promo-controls .plain-select {
  max-width: 96px;
  padding: 3px 18px 3px 2px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.promo-controls .plain-select option {
  color: var(--ink);
}

.site-header {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
}

.main-header {
  grid-template-columns: 300px 1fr auto;
  min-height: 58px;
  gap: 20px;
}

.brand {
  grid-template-columns: 34px auto;
  column-gap: 9px;
}

.brand img {
  grid-row: 1;
}

.brand-word {
  align-self: center;
  font-size: 20px;
  letter-spacing: 0.2em;
}

.brand-sub {
  display: none;
}

.desktop-nav {
  gap: clamp(20px, 2.1vw, 36px);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.desktop-nav a {
  padding-block: 20px;
}

.desktop-nav a::after {
  bottom: 13px;
  background: var(--ink);
}

.desktop-nav .nav-sale {
  color: var(--ink);
}

.header-actions {
  gap: 2px;
}

.header-actions .icon-button {
  min-width: 38px;
  min-height: 38px;
}

.header-actions .icon-button svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.45;
}

.action-count {
  background: var(--teal);
  border-color: #fff;
}

.collection-section {
  padding-block: 18px 112px;
}

.breadcrumbs {
  justify-content: center;
  margin: 0 0 8px;
  color: #737070;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.collection-heading {
  max-width: 760px;
  margin: 0 auto 20px;
}

.collection-heading h1 {
  margin-bottom: 22px;
  font-size: clamp(38px, 3.2vw, 50px);
  line-height: 1.05;
}

.collection-heading > p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  color: #373535;
  font-size: 14px;
  line-height: 1.55;
}

.collection-toolbar {
  min-height: 80px;
  margin: 0 0 40px;
  border-block: 0 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.collection-toolbar h2 {
  margin: 0;
  font-size: clamp(28px, 2.5vw, 38px);
  line-height: 1;
}

.toolbar-actions {
  gap: 18px;
}

.product-count-label {
  color: var(--ink-soft);
  font-size: 11px;
}

.filter-trigger {
  gap: 7px;
  min-height: 44px;
  padding: 8px 2px;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.filter-trigger svg {
  width: 17px;
  height: 17px;
}

#active-filter-count {
  display: grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  background: var(--teal);
  border-radius: 99px;
  color: #fff;
  font-size: 10px;
}

#active-filter-count[hidden] {
  display: none;
}

.sort-label {
  margin-inline-start: 5px;
  color: var(--ink);
}

.toolbar-actions select {
  min-width: 126px;
  padding: 10px 24px 10px 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0;
}

.active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: -20px 0 28px;
}

.active-filters[hidden] {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 6px 11px;
  background: var(--paper);
  border: 1px solid rgba(37, 36, 36, 0.12);
  border-radius: 999px;
  font-size: 11px;
}

.filter-chip::after {
  content: "×";
  font-size: 15px;
  line-height: 1;
}

.clear-filter-chips {
  padding: 7px 2px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.product-media {
  aspect-ratio: 6 / 7;
  margin-bottom: 10px;
  background: var(--paper);
}

.product-media > button[data-open-product] {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
}

.product-media img {
  object-fit: cover;
  transform: none;
  filter: none !important;
  transition: transform 380ms ease;
}

.product-card:hover .product-media img {
  transform: scale(1.02);
}

.product-badges {
  top: 9px;
  left: 9px;
}

html[dir="rtl"] .product-badges {
  right: 9px;
  left: auto;
}

.badge {
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 36, 36, 0.24);
  color: var(--ink);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.badge-sale {
  background: #fff;
  color: var(--ink);
}

.wishlist-toggle {
  top: 7px;
  right: 7px;
  width: 38px;
  height: 38px;
  background: transparent;
}

html[dir="rtl"] .wishlist-toggle {
  right: auto;
  left: 7px;
}

.wishlist-toggle.is-active {
  background: transparent;
  color: var(--teal);
}

.quick-add {
  display: none;
}

.product-meta {
  gap: 4px;
}

.product-intention,
.product-stone,
.product-swatches {
  display: none;
}

.product-name-button {
  display: block;
  width: 100%;
}

.product-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
}

.product-price {
  gap: 7px;
  margin-top: 0;
  font-size: 12px;
}

.product-price del {
  font-size: 11px;
}

.empty-state {
  padding: 80px 20px 120px;
}

#filter-drawer {
  width: min(470px, 96vw);
}

#filter-drawer .drawer-header {
  min-height: 72px;
  padding-inline: 28px;
}

#filter-drawer .drawer-scroll {
  padding: 0 28px 30px;
}

.filter-group {
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.filter-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  margin: 0;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  list-style: none;
  text-transform: uppercase;
}

.filter-title::-webkit-details-marker {
  display: none;
}

.filter-title::after {
  content: "+";
  font-size: 20px;
  font-weight: 300;
}

.filter-group[open] > .filter-title::after {
  content: "−";
}

.filter-options {
  gap: 0;
  padding: 0 0 18px;
}

.filter-option {
  min-height: 38px;
  color: #464343;
  font-size: 13px;
}

.filter-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--teal);
}

.filter-option small {
  color: #8e8986;
}

.filter-reset {
  display: none;
}

#show-results-label {
  white-space: nowrap;
}

.story-section {
  min-height: 610px;
  margin-top: 0;
}

.story-image {
  min-height: 610px;
}

.story-copy {
  min-height: 610px;
}

.site-footer {
  background: #252827;
}

.footer-bottom {
  text-transform: none;
}

.modal-image-wrap,
.modal-image-wrap img {
  background: var(--paper);
  object-fit: contain;
}

.size-option:disabled {
  cursor: not-allowed;
  opacity: 0.35;
  text-decoration: line-through;
}

@media (max-width: 1279px) {
  .main-header {
    grid-template-columns: 44px 1fr auto;
    min-height: 58px;
    gap: 8px;
  }

  .mobile-only {
    display: inline-flex;
  }

  .desktop-nav {
    display: none;
  }

  .brand {
    justify-self: center;
  }

  .brand img {
    display: none;
  }

  .brand-word {
    font-size: 18px;
  }
}

@media (max-width: 920px) {
  :root {
    --shell: calc(100% - 24px);
  }

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

  .story-section {
    grid-template-columns: 1fr;
  }
}

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

  .promo-bar {
    min-height: 36px;
    padding: 0 12px;
  }

  .promo-inner {
    display: flex;
    min-height: 36px;
    justify-content: center;
    width: 100%;
  }

  .promo-inner > p {
    font-size: 12px;
    text-align: center;
  }

  .promo-controls {
    display: none;
  }

  .main-header {
    min-height: 58px;
  }

  .header-actions .icon-button:nth-child(1) {
    display: inline-flex;
  }

  .header-actions .icon-button:nth-child(2) {
    display: none;
  }

  .brand-word {
    font-size: 17px;
  }

  .collection-section {
    padding-block: 17px 72px;
  }

  .breadcrumbs {
    margin-bottom: 9px;
    font-size: 11px;
  }

  .collection-heading {
    margin-bottom: 16px;
  }

  .collection-heading h1 {
    margin-bottom: 24px;
    font-size: 30px;
    line-height: 1.08;
  }

  .collection-heading > p:last-child {
    max-width: 360px;
    font-size: 12.5px;
    line-height: 1.5;
  }

  .collection-toolbar {
    position: sticky;
    z-index: 32;
    top: 58px;
    align-items: center;
    flex-direction: row;
    min-height: 62px;
    margin: 0 0 24px;
    padding: 0;
    background: rgba(255, 255, 255, 0.98);
    border-block: 0 1px solid var(--line);
    backdrop-filter: blur(10px);
  }

  .collection-toolbar h2 {
    display: none;
  }

  .toolbar-actions {
    width: 100%;
    justify-content: space-between;
    gap: 7px;
  }

  .product-count-label {
    display: none;
  }

  .filter-trigger {
    padding-inline: 0;
    font-size: 12px;
  }

  .sort-label {
    margin-inline-start: auto;
    font-size: 12px;
  }

  .toolbar-actions select {
    width: min(42vw, 164px);
    min-width: 0;
    padding-inline-end: 21px;
    font-size: 12px;
  }

  .active-filters {
    flex-wrap: nowrap;
    margin: -9px -12px 20px;
    padding: 0 12px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .active-filters::-webkit-scrollbar {
    display: none;
  }

  .filter-chip,
  .clear-filter-chips {
    flex: 0 0 auto;
  }

  .product-grid {
    gap: 30px 8px;
  }

  .product-media {
    margin-bottom: 9px;
  }

  .product-badges {
    top: 6px;
    left: 5px;
  }

  html[dir="rtl"] .product-badges {
    right: 5px;
  }

  .badge {
    padding: 3px 5px;
    font-size: 8px;
  }

  .wishlist-toggle {
    top: 3px;
    right: 3px;
    width: 34px;
    height: 34px;
  }

  html[dir="rtl"] .wishlist-toggle {
    right: auto;
    left: 3px;
  }

  .product-name {
    font-size: 12px;
    line-height: 1.35;
  }

  .product-price {
    font-size: 12px;
  }

  #filter-drawer {
    width: min(430px, 100vw);
    height: 100dvh;
  }

  #filter-drawer .drawer-header,
  #filter-drawer .drawer-footer {
    padding-inline: 20px;
  }

  #filter-drawer .drawer-scroll {
    padding-inline: 20px;
  }

  .story-image {
    min-height: 420px;
  }

  .story-copy {
    min-height: 390px;
  }
}

@media (max-width: 360px) {
  .header-actions .icon-button {
    min-width: 34px;
  }

  .brand-word {
    font-size: 15px;
  }

  .collection-heading h1 {
    font-size: 27px;
  }

  .filter-trigger,
  .sort-label,
  .toolbar-actions select {
    font-size: 11px;
  }
}
