:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-soft: #f5f2ed;
  --line: rgba(21, 21, 21, 0.08);
  --text: #1f1a17;
  --muted: #71665d;
  --accent: #111111;
  --soft-shadow: 0 18px 50px rgba(28, 22, 18, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Serif 4", serif;
  font-size: 1.06rem;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.promo-bar {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.35rem 1rem;
  background: #111;
  color: #f8f4ee;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 250, 248, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.language-switch {
  display: flex;
  gap: 0.4rem;
  padding: 0.4rem 1.2rem 0;
}

.lang-pill {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0.35rem 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.lang-pill.is-active {
  color: var(--text);
}

.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 2rem 1.1rem;
}

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

.header-actions {
  justify-content: flex-end;
}

.menu-button {
  width: 2.8rem;
  height: 2.8rem;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.26rem;
}

.menu-button span {
  width: 1rem;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
}

.search-shell {
  display: flex;
  align-items: center;
  border: 1px solid transparent;
}

.search-shell input {
  width: 12rem;
  border: 0;
  background: transparent;
  padding: 0.8rem 1rem;
  color: var(--text);
  font-size: 1.05rem;
}

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

.search-shell button {
  width: 3rem;
  height: 3rem;
  border: 0;
  background: #121212;
  color: #fff;
  font-size: 1.2rem;
}

.logo-mark {
  border: 0;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  color: var(--accent);
}

.logo-mark svg {
  width: 5rem;
  height: 5rem;
}

.logo-mark span {
  margin-top: -3.9rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 3.3rem;
  opacity: 0;
}

.header-link,
.nav-link {
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.02rem;
  font-weight: 500;
}

.cart-trigger {
  position: relative;
}

.cart-badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #1f1a17;
  color: #fff;
  font-family: "Source Serif 4", serif;
  font-size: 0.76rem;
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  padding: 0 2rem 1rem;
  font-size: 1.1rem;
}

.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.8rem);
  left: 0;
  display: none;
  min-width: 12rem;
  padding: 0.75rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
}

.dropdown-menu button {
  display: block;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: "Source Serif 4", serif;
  font-size: 1rem;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.page-shell {
  padding: 2rem 1.9rem 4rem;
}

.home-hero {
  max-width: 1490px;
  margin: 0 auto 1.6rem;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.35rem;
  align-items: stretch;
}

.home-hero__copy,
.home-hero__photo,
.home-panel,
.info-card,
.info-page__body {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--soft-shadow);
}

.home-hero__copy {
  padding: 3rem 2.6rem;
  display: grid;
  align-content: center;
  gap: 1rem;
}

.home-hero__eyebrow,
.home-panel__label {
  margin: 0;
  color: #8b7db0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
}

.home-hero__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.2rem, 5.2vw, 5.4rem);
  font-weight: 600;
  line-height: 0.92;
}

.home-hero__text {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.6rem;
}

.home-hero__secondary {
  width: auto;
  margin-top: 0;
}

.home-hero__photo {
  position: relative;
  min-height: 32rem;
  overflow: hidden;
  background:
    linear-gradient(rgba(22, 18, 14, 0.08), rgba(22, 18, 14, 0.08)),
    url("https://images.unsplash.com/photo-1521572267360-ee0c2909d518?auto=format&fit=crop&w=1600&q=80")
      center/cover;
}

.home-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(11, 9, 8, 0.14));
}

.home-hero__badge {
  position: absolute;
  top: 1.1rem;
  left: 1.1rem;
  z-index: 1;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
}

.home-panels {
  max-width: 1490px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.home-panel {
  padding: 1.35rem 1.2rem;
  text-align: left;
  cursor: pointer;
}

.home-panel strong {
  display: block;
  margin-top: 0.45rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  font-weight: 600;
}

.home-panel p {
  margin: 0.6rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.collection-intro {
  margin: 1rem auto 2rem;
  max-width: 1490px;
}

.breadcrumbs {
  color: #8b7db0;
  font-size: 1rem;
}

.intro-copy {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-end;
}

h1,
.custom-hero h2,
#modalTitle {
  margin: 0.7rem 0 0.8rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 0.95;
}

#collectionDescription {
  max-width: 45rem;
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.result-count {
  color: var(--muted);
  font-size: 1.02rem;
}

.collection-controls {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  color: var(--muted);
  font-size: 1rem;
}

.view-toggle {
  display: flex;
  gap: 0.4rem;
}

.layout-button {
  border: 0;
  background: transparent;
  color: #8a827b;
  font-size: 1.2rem;
}

.layout-button.is-active {
  color: var(--text);
}

.sort-shell {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.sort-shell select {
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: "Source Serif 4", serif;
  font-size: 1.02rem;
}

.custom-hero {
  max-width: 1120px;
  margin: 0 auto 2rem;
  padding: 1rem 0 0.8rem;
  text-align: center;
}

.info-page {
  max-width: 1490px;
  margin: 0 auto 2rem;
}

.info-page__header {
  margin-bottom: 1.5rem;
}

.info-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.8fr);
  gap: 1.2rem;
}

.info-page__body {
  padding: 1.7rem 1.8rem;
}

.info-page__body p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.85;
}

.info-page__side {
  display: grid;
  align-content: start;
}

.info-card {
  padding: 1.5rem;
}

.info-card h2 {
  margin: 0 0 0.8rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
}

.info-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.9;
}

.custom-hero p {
  max-width: 48rem;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.is-hidden {
  display: none;
}

.products-section {
  max-width: 1490px;
  margin: 0 auto;
}

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

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

.product-card {
  position: relative;
}

.product-card--gallery {
  padding: 1rem 1rem 0;
  background: #fcfbfa;
  border-radius: 1.1rem;
  box-shadow: 0 18px 40px rgba(58, 38, 18, 0.08);
}

.product-card--gallery::before {
  content: "";
  position: absolute;
  top: -0.15rem;
  right: 1.3rem;
  width: 3.1rem;
  height: 1rem;
  background: repeating-linear-gradient(
    45deg,
    rgba(248, 177, 220, 0.8),
    rgba(248, 177, 220, 0.8) 4px,
    rgba(251, 214, 238, 0.85) 4px,
    rgba(251, 214, 238, 0.85) 8px
  );
  border-radius: 0.15rem;
  transform: rotate(12deg);
}

.product-card--gallery .product-card__media {
  background: #fff;
  padding: 0.95rem;
  border-radius: 0.3rem;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.04);
}

.product-card__media {
  position: relative;
  width: 100%;
  background: var(--surface-soft);
  overflow: hidden;
}

.product-card__open {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
}

.product-card__media img {
  width: 100%;
  aspect-ratio: 0.84;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.photo-count {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.photo-count:empty {
  display: none;
}

.product-card__media:hover img {
  transform: scale(1.03);
  filter: saturate(1.05);
}

.quick-view {
  position: absolute;
  inset: auto 1rem 1rem;
  padding: 0.55rem 0.8rem;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(0.5rem);
  transition: all 180ms ease;
  font-size: 1rem;
}

.product-card__media:hover .quick-view {
  opacity: 1;
  transform: translateY(0);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f1a17;
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: 2;
}

.gallery-nav--left {
  left: 0.85rem;
}

.gallery-nav--right {
  right: 0.85rem;
}

.product-card__nav {
  top: calc(50% - 0.5rem);
}

.product-card__media:hover .gallery-nav,
.modal-media:hover .gallery-nav,
.gallery-nav:focus-visible {
  opacity: 1;
}

.product-card__body {
  padding: 0.9rem 0.35rem 0;
  text-align: center;
}

.product-card--gallery .product-card__body {
  padding-bottom: 1rem;
}

.product-card__body h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.02;
}

.product-price {
  margin: 0.3rem 0 0;
  color: #443c36;
  font-size: 1rem;
}

.swap-image-button {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  font-size: 0.96rem;
}

.floating-socials {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  gap: 0.8rem;
  z-index: 15;
}

.floating-socials a {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: var(--soft-shadow);
}

.floating-socials a:nth-child(1) {
  background: #6fcf47;
}

.floating-socials a:nth-child(2) {
  background: linear-gradient(135deg, #f8cb5d, #ef5f76, #7a5cff);
}

.floating-socials a:nth-child(3) {
  background: #7b61ff;
}

.editor-toggle {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 16;
  border: 0;
  background: #141414;
  color: #fff;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  box-shadow: var(--soft-shadow);
}

.editor-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: min(26rem, 100vw);
  height: 100vh;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid var(--line);
  box-shadow: var(--soft-shadow);
  transform: translateX(-101%);
  transition: transform 220ms ease;
  z-index: 30;
}

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

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.editor-header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
}

.editor-header button {
  border: 0;
  background: transparent;
  font-size: 2rem;
}

.editor-panel p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.editor-panel label {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.editor-panel input,
.editor-panel select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1rem;
}

.editor-actions {
  display: flex;
  gap: 0.7rem;
}

.editor-actions button,
.ghost-button,
.shop-button {
  border: 0;
  background: #161616;
  color: #fff;
  padding: 0.95rem 1.1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.08rem;
  font-weight: 600;
}

.ghost-button {
  width: 100%;
  margin-top: 1rem;
  background: #ece7df;
  color: var(--text);
}

.product-modal {
  width: min(980px, calc(100vw - 2rem));
  border: 0;
  padding: 0;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.product-modal::backdrop {
  background: rgba(20, 17, 14, 0.4);
  backdrop-filter: blur(8px);
}

.product-modal[open] {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.8rem;
}

.modal-media {
  position: relative;
  background: #f6f1ea;
}

.modal-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.modal-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0.8rem;
  background: #faf7f2;
  border-top: 1px solid var(--line);
}

.modal-thumbnail {
  border: 1px solid transparent;
  padding: 0;
  background: transparent;
  overflow: hidden;
}

.modal-thumbnail img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.modal-thumbnail.is-active {
  border-color: #1f1a17;
}

.modal-copy {
  padding: 3rem 2.2rem;
}

.modal-tag {
  margin: 0;
  color: #8b7db0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

.modal-price {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.modal-description {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.02rem;
}

.modal-variant {
  margin: 1rem 0 1.2rem;
}

.modal-variant__label {
  display: block;
  margin-bottom: 0.35rem;
  color: #6b6178;
  font-size: 0.92rem;
}

.modal-variant__select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid rgba(21, 21, 21, 0.12);
  background: #fff;
  padding: 0.7rem 0.9rem;
  color: var(--text);
}

.modal-notes {
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(23, 18, 15, 0.28);
  backdrop-filter: blur(4px);
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 40;
  width: min(41rem, 100vw);
  height: 100vh;
  padding: 0;
  background: #ffffff;
  border-left: 1px solid rgba(21, 21, 21, 0.12);
  box-shadow: -18px 0 40px rgba(24, 20, 16, 0.08);
  transform: translateX(104%);
  transition: transform 220ms ease;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

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

.cart-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.45rem 1.85rem 1.05rem;
  border-bottom: 1px solid rgba(21, 21, 21, 0.1);
}

.cart-eyebrow {
  display: none;
}

.cart-drawer__header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.95rem;
  font-weight: 500;
}

.cart-close {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 2rem;
  line-height: 1;
  color: #5e5954;
}

.cart-reserve,
.cart-upsell {
  display: none;
}

.cart-progress {
  height: 0.55rem;
  margin-top: 0.8rem;
  border-radius: 999px;
  background: rgba(31, 26, 23, 0.08);
  overflow: hidden;
}

.cart-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #181513, #b89a92);
  transition: width 220ms ease;
}

.cart-progress__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.cart-items {
  min-height: 0;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 0;
  padding: 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 6.4rem 1fr;
  gap: 1.2rem;
  padding: 1.15rem 1.85rem;
  border-bottom: 1px solid rgba(21, 21, 21, 0.1);
  background: #fff;
}

.cart-item__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
}

.cart-item__copy {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.cart-item__top,
.cart-item__bottom,
.cart-summary__row,
.cart-benefits {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.cart-item__title {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.05;
}

.cart-item__price {
  margin: 0.45rem 0 0;
  color: #5c5651;
  font-size: 1.08rem;
}

.cart-item__variant {
  margin: 0.35rem 0 0;
  color: #857f79;
  font-size: 0.94rem;
}

.cart-item__remove {
  border: 0;
  background: transparent;
  padding: 0;
  color: #928d87;
  font-size: 1rem;
  text-decoration: underline;
  text-underline-offset: 0.14rem;
}

.cart-qty {
  display: inline-grid;
  grid-template-columns: 2.6rem 2.4rem 2.6rem;
  align-items: center;
  border: 1px solid rgba(21, 21, 21, 0.2);
  border-radius: 0;
  overflow: hidden;
}

.cart-qty button {
  border: 0;
  background: #fff;
  height: 2.45rem;
  font-size: 1.45rem;
  color: #504b46;
}

.cart-qty__value {
  min-width: 2.4rem;
  text-align: center;
  padding-top: 0.1rem;
  color: #504b46;
}

.cart-benefits {
  display: none;
}

.cart-summary {
  display: grid;
  gap: 0.4rem;
  padding: 1.55rem 1.85rem 0.45rem;
  border-top: 1px solid rgba(21, 21, 21, 0.1);
}

.cart-summary__row:first-child {
  align-items: center;
}

.cart-summary__row:first-child span,
.cart-summary__row:first-child strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  color: #2a2521;
}

.cart-summary__row:last-child span {
  color: #8c847d;
  font-size: 1rem;
}

.cart-summary__row:last-child strong {
  display: none;
}

.cart-checkout {
  border: 0;
  margin: 0 1.85rem 1.3rem;
  border-radius: 0;
  background: #111111;
  color: #fff;
  padding: 1.1rem 1.1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.cart-checkout:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cart-payments {
  display: none;
}

.cart-payments span {
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 0.6rem;
  background: #fff;
  font-size: 0.88rem;
}

.cart-return {
  display: none;
}

.cart-empty {
  padding: 2rem 1.6rem;
  color: var(--muted);
  text-align: left;
  font-size: 1rem;
}

.checkout-body {
  min-height: 100vh;
  background:
    linear-gradient(90deg, #ebe1f3 0, #ebe1f3 min(58rem, 58%), #fbfaf8 min(58rem, 58%), #fbfaf8 100%);
}

.checkout-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(21rem, 0.88fr);
}

.checkout-main {
  padding: 2rem clamp(1.4rem, 3vw, 3.25rem) 2.8rem;
}

.checkout-summary-panel {
  background: #fcfbf8;
  border-left: 1px solid rgba(21, 21, 21, 0.08);
  padding: 2rem clamp(1.2rem, 3vw, 2.75rem);
}

.checkout-main > * {
  max-width: 39rem;
  margin-left: auto;
  margin-right: auto;
}

.checkout-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.checkout-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6.4rem;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid rgba(21, 21, 21, 0.08);
}

.checkout-brand svg {
  width: 3.7rem;
  height: 3.7rem;
}

.checkout-return-link,
.checkout-signin {
  border: 0;
  background: transparent;
  padding: 0;
  color: #7c5a95;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
  font-size: 0.96rem;
}

.checkout-main h1,
.checkout-section h2,
.checkout-total__amount,
.checkout-total__label {
  font-family: "Cormorant Garamond", serif;
}

.checkout-section {
  margin-top: 1.25rem;
}

.checkout-section h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3vw, 1.95rem);
  line-height: 1;
  font-weight: 600;
}

.checkout-signin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.checkout-field-grid {
  display: grid;
  gap: 0.75rem;
}

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

.checkout-field-grid--triple {
  grid-template-columns: 1.1fr 1fr 1fr;
}

.checkout-input,
.checkout-select {
  width: 100%;
  border: 1.6px solid rgba(124, 90, 149, 0.24);
  border-radius: 0.8rem;
  background: #fff;
  color: var(--text);
  padding: 0.82rem 0.95rem;
  min-height: 3.15rem;
  outline: none;
  font-size: 0.97rem;
}

.checkout-input:focus,
.checkout-select:focus {
  border-color: #8f66b0;
  box-shadow: 0 0 0 4px rgba(143, 102, 176, 0.1);
}

.checkout-label {
  display: block;
  margin-bottom: 0.32rem;
  color: #6b6178;
  font-size: 0.88rem;
}

.checkout-checkbox {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #463b4d;
  margin-top: 0.6rem;
  font-size: 0.94rem;
}

.checkout-checkbox input,
.checkout-radio input {
  accent-color: #8a61aa;
}

.checkout-payment-card,
.checkout-billing-card {
  border: 1.6px solid rgba(124, 90, 149, 0.24);
  border-radius: 0.85rem;
  background: #fff;
  overflow: hidden;
}

.checkout-payment-head,
.checkout-radio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
}

.checkout-payment-note {
  margin: 0;
  padding: 0.85rem 1rem;
  color: #61566d;
  border-top: 1px solid rgba(124, 90, 149, 0.16);
  font-size: 0.93rem;
}

.checkout-paypal-shell {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(124, 90, 149, 0.16);
}

#paypalButtonContainer {
  min-height: 2.8rem;
  padding-top: 1rem;
}

.checkout-payment-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.checkout-payment-icons span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  height: 1.7rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 0.45rem;
  background: #fff;
  font-size: 0.76rem;
}

.checkout-billing-fields {
  padding: 0 1rem 1rem;
  border-top: 1px solid rgba(124, 90, 149, 0.16);
}

.checkout-billing-fields .checkout-field-grid {
  margin-top: 0.85rem;
}

.checkout-submit {
  width: 100%;
  border: 0;
  border-radius: 0.8rem;
  background: #8a61aa;
  color: #fff;
  min-height: 3.25rem;
  margin-top: 1.6rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.18rem;
  font-weight: 600;
}

.checkout-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  padding-top: 1.2rem;
  margin-top: 1.3rem;
  border-top: 1px solid rgba(21, 21, 21, 0.08);
  font-size: 0.92rem;
}

.checkout-footer-links a {
  color: #7c5a95;
}

.checkout-summary-list {
  display: grid;
  gap: 0.85rem;
}

.checkout-summary-item {
  display: grid;
  grid-template-columns: 4.2rem 1fr auto;
  gap: 0.85rem;
  align-items: center;
}

.checkout-summary-media {
  position: relative;
  width: 4.2rem;
  aspect-ratio: 1;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgba(21, 21, 21, 0.08);
  background: #fff;
}

.checkout-summary-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-summary-qty {
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.28rem;
  height: 1.28rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.74rem;
}

.checkout-summary-name {
  margin: 0;
  font-size: 1rem;
}

.checkout-summary-variant {
  margin: 0.18rem 0 0;
  color: #81786f;
  font-size: 0.88rem;
}

.checkout-summary-price {
  font-size: 1rem;
  white-space: nowrap;
}

.checkout-discount {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.8rem;
  margin: 1.45rem 0;
}

.checkout-discount button {
  border: 1px solid rgba(21, 21, 21, 0.12);
  border-radius: 0.8rem;
  background: #f0eeeb;
  color: #6c665f;
  padding: 0 1.2rem;
  font-weight: 600;
  font-size: 0.96rem;
}

.checkout-summary-totals {
  display: grid;
  gap: 0.58rem;
  font-size: 0.98rem;
}

.checkout-summary-row,
.checkout-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.checkout-summary-row span:last-child {
  text-align: right;
}

.checkout-total {
  padding-top: 0.7rem;
}

.checkout-total__label {
  font-size: 1.52rem;
  line-height: 0.95;
  font-weight: 600;
}

.checkout-total__amount {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 700;
}

.checkout-total__currency {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: #7f776f;
}

.checkout-empty-state {
  padding: 2.3rem 0 0;
  color: var(--muted);
}

.checkout-pay-success {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 0.95rem;
  background: rgba(138, 97, 170, 0.12);
  color: #6b4b86;
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .checkout-body {
    background: #fbfaf8;
  }

  .checkout-shell {
    grid-template-columns: 1fr;
  }

  .checkout-main,
  .checkout-summary-panel {
    padding: 1.4rem 1rem 1.8rem;
  }

  .checkout-main > * {
    max-width: none;
  }

  .checkout-summary-panel {
    border-left: 0;
    border-top: 1px solid rgba(21, 21, 21, 0.08);
  }
}

@media (max-width: 640px) {
  .checkout-field-grid--double,
  .checkout-field-grid--triple,
  .checkout-discount,
  .checkout-summary-item {
    grid-template-columns: 1fr;
  }

  .checkout-discount button {
    min-height: 3.5rem;
  }

  .checkout-summary-price {
    padding-left: 5.8rem;
  }
}

.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(240, 204, 222, 0.45), transparent 30%),
    linear-gradient(180deg, #fbfaf8 0%, #f4eee8 100%);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
}

.auth-card {
  width: min(34rem, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(21, 21, 21, 0.08);
  box-shadow: 0 18px 50px rgba(28, 22, 18, 0.08);
  padding: 1.75rem;
}

.auth-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.auth-back {
  color: #7c5a95;
  text-decoration: underline;
  text-underline-offset: 0.16rem;
  font-size: 0.95rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 0.4rem;
  color: var(--text);
}

.auth-logo svg {
  width: 100%;
  height: 100%;
}

.auth-title,
.auth-panel h2,
.auth-account-name {
  font-family: "Cormorant Garamond", serif;
}

.auth-title {
  margin: 0.15rem 0 0.35rem;
  text-align: center;
  font-size: 2.3rem;
  line-height: 1;
}

.auth-subtitle {
  margin: 0 0 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.auth-tab {
  border: 1px solid rgba(21, 21, 21, 0.1);
  background: #f6f1eb;
  color: #655d56;
  min-height: 2.95rem;
}

.auth-tab.is-active {
  background: #111;
  color: #fff;
}

.auth-panel[hidden] {
  display: none;
}

.auth-form {
  display: grid;
  gap: 0.8rem;
}

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

.auth-label {
  display: block;
  margin-bottom: 0.32rem;
  color: #6b6178;
  font-size: 0.88rem;
}

.auth-input {
  width: 100%;
  min-height: 3.05rem;
  border: 1px solid rgba(21, 21, 21, 0.12);
  background: #fff;
  padding: 0.78rem 0.92rem;
  font-size: 0.97rem;
}

.auth-input:focus {
  outline: none;
  border-color: #8f66b0;
  box-shadow: 0 0 0 4px rgba(143, 102, 176, 0.1);
}

.auth-submit,
.auth-secondary {
  min-height: 3.1rem;
  border: 0;
  font-size: 1rem;
}

.auth-submit {
  background: #111;
  color: #fff;
}

.auth-secondary {
  background: #efe9f7;
  color: #664987;
}

.auth-feedback {
  min-height: 1.5rem;
  color: #7a3154;
  font-size: 0.92rem;
}

.auth-account {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem;
  border: 1px solid rgba(21, 21, 21, 0.08);
  background: #faf7f3;
}

.auth-account-name {
  margin: 0;
  font-size: 1.85rem;
}

.auth-account-copy {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .auth-card {
    padding: 1.2rem;
  }

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

.site-footer {
  margin-top: 2rem;
  background: #4a4949;
  color: #f1ece7;
}

.footer-banner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.55rem 2.4rem;
  background:
    linear-gradient(rgba(43, 36, 34, 0.3), rgba(43, 36, 34, 0.3)),
    url("https://images.unsplash.com/photo-1519378058457-4c29a0a2efac?auto=format&fit=crop&w=1600&q=80")
      center/cover;
  font-size: 0.95rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.7fr 1fr;
  gap: 2.4rem;
  padding: 3rem 2.4rem 2rem;
}

.footer-column h2 {
  margin: 0 0 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  font-weight: 600;
}

.footer-column p,
.footer-column li,
.footer-link,
.footer-select-shell span,
.footer-select-shell select {
  color: #f1ece7;
  font-size: 0.98rem;
  line-height: 1.75;
}

.footer-links {
  display: grid;
  justify-items: start;
  gap: 0.55rem;
}

.footer-link {
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.footer-column--qr {
  justify-self: center;
}

.footer-qr {
  display: grid;
  gap: 1rem;
}

.footer-qr__code {
  display: grid;
  place-items: center;
  width: 13rem;
  aspect-ratio: 1;
  border-radius: 0.4rem;
  background:
    linear-gradient(90deg, rgba(97, 210, 108, 0.15) 50%, transparent 50%),
    linear-gradient(rgba(97, 210, 108, 0.15) 50%, transparent 50%),
    #fff;
  background-size: 1rem 1rem;
  color: #56b85e;
  font-family: "Cormorant Garamond", serif;
  font-size: 7rem;
  font-weight: 600;
}

.footer-contact-list {
  margin: 0.3rem 0 1rem;
  padding-left: 1.2rem;
}

.footer-contact-meta p {
  margin: 0.45rem 0;
}

.footer-controls {
  display: flex;
  gap: 1rem;
  padding: 0 2.4rem 2rem;
}

.footer-select-shell {
  display: grid;
  gap: 0.4rem;
}

.footer-select-shell select {
  min-width: 11rem;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: transparent;
  padding: 0.7rem 0.9rem;
}

@media (max-width: 1100px) {
  .home-hero,
  .info-page__grid {
    grid-template-columns: 1fr;
  }

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

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

  .primary-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 1rem;
  }

  .intro-copy {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .promo-bar {
    display: none;
  }

  .header-main {
    grid-template-columns: 1fr auto;
    padding: 1rem;
  }

  .footer-banner,
  .footer-main,
  .footer-controls {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-banner,
  .footer-main,
  .footer-controls {
    grid-template-columns: 1fr;
  }

  .footer-banner,
  .footer-controls {
    flex-direction: column;
  }

  .footer-main {
    gap: 1.5rem;
    padding-top: 2rem;
  }

  .home-panels,
  .product-grid,
  .product-grid.compact {
    grid-template-columns: 1fr;
  }

  .home-hero__copy {
    padding: 2rem 1.4rem;
  }

  .home-hero__photo {
    min-height: 21rem;
  }

  .header-left {
    gap: 0.5rem;
  }

  .search-shell input {
    width: 8.2rem;
  }

  .header-actions {
    display: none;
  }

  .logo-mark {
    grid-column: 1 / -1;
    order: -1;
    margin-bottom: 0.25rem;
  }

  .primary-nav {
    padding: 0 1rem 1rem;
    gap: 1rem;
  }

  .page-shell {
    padding: 1.3rem 1rem 5rem;
  }

  h1,
  .custom-hero h2,
  #modalTitle {
    font-size: 2.6rem;
  }

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

  .product-modal[open] {
    grid-template-columns: 1fr;
  }

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

  .editor-panel {
    width: 100vw;
  }

  .cart-drawer {
    width: 100vw;
  }

  .cart-benefits {
    flex-direction: column;
    align-items: flex-start;
  }
}
