/* RS Fragrance — identité visuelle */

:root {
  --black: #090909;
  --ink: #141414;
  --gold: #c8a96b;
  --gold-deep: #6e5730;
  --ivory: #f7f4ee;
  --gray: #a5a5a5;
  --line: rgba(200, 169, 107, 0.28);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --header: 84px;
  --radius: 16px;
  --shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  color-scheme: dark;
}

body.is-locked {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  overflow-wrap: break-word;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--black);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  transform: translateY(-160%);
  background: var(--gold);
  color: var(--ink);
  padding: 10px 14px;
  z-index: 100;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.skip-link:focus {
  transform: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.noscript {
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  padding: 12px 16px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section {
  padding: clamp(72px, 10vw, 120px) 0;
}

.section--black {
  background: var(--black);
}

.section--ink {
  background: var(--ink);
}

.section--ivory {
  background: var(--ivory);
  color: var(--ink);
}

.section--ivory .eyebrow,
.section--ivory .product-card__brand {
  color: var(--gold-deep);
}

.section__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 42px;
}

.section__top h2,
.page-hero h1,
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.95;
}

.section__top h2 {
  font-size: clamp(2.4rem, 5vw, 4.15rem);
  max-width: 12ch;
}

.section__lead,
.demo-note {
  max-width: 38ch;
  color: var(--gray);
}

.section--ivory .section__lead,
.section--ivory .demo-note {
  color: #5c584f;
}

.demo-note {
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 1px solid var(--gold);
  font-size: 0.92rem;
  max-width: 68ch;
}

.notes {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

/* Header */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header);
  transition: background 0.4s ease, border-color 0.4s ease, color 0.45s ease;
  border-bottom: 1px solid transparent;
}

.header.is-solid,
.header--solid {
  background: rgba(9, 9, 9, 0.96);
  border-bottom-color: var(--line);
}

.header__inner {
  height: 100%;
  width: min(1440px, calc(100% - 40px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1;
  width: max-content;
}

.logo img {
  display: block;
  width: auto;
  height: 64px;
  object-fit: contain;
  object-position: center;
  border-radius: 50%;
}

.footer .logo img {
  height: 112px;
}

.logo__rs {
  font-family: var(--serif);
  font-size: 1.75rem;
  letter-spacing: 0.28em;
  color: var(--gold);
}

.logo__word {
  margin-top: 4px;
  font-size: 0.62rem;
  letter-spacing: 0.46em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav__link {
  position: relative;
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 0;
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 3;
}

.icon-btn,
.burger,
.cart-toggle,
.theme-toggle,
.header-instagram,
.header-tiktok {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: var(--ivory);
  position: relative;
}

.theme-toggle__icon {
  position: absolute;
  width: 20px;
  height: 20px;
}

.theme-toggle__icon--sun {
  opacity: 1;
  transform: none;
}

.theme-toggle__icon--moon {
  opacity: 0;
  transform: rotate(-20deg) scale(0.84);
}

html[data-theme="light"] .theme-toggle__icon--sun {
  opacity: 0;
  transform: rotate(20deg) scale(0.84);
}

html[data-theme="light"] .theme-toggle__icon--moon {
  opacity: 1;
  transform: none;
}

.icon {
  width: 22px;
  height: 22px;
  display: block;
}

.header-instagram,
.header-tiktok {
  text-decoration: none;
}

.header-instagram:hover,
.header-tiktok:hover {
  color: var(--gold);
}


.social-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-social .social-icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.info-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.info-social .social-icon {
  width: 22px;
  height: 22px;
  flex: none;
}

.cart-toggle__count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.cart-toggle__count.is-bump {
  animation: bump 0.35s ease;
}

.burger {
  display: none;
}

.burger span {
  position: absolute;
  width: 20px;
  height: 1px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger span:nth-child(1) {
  transform: translateY(-6px);
}

.burger span:nth-child(3) {
  transform: translateY(6px);
}

.burger.is-open span:nth-child(1) {
  transform: rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  background: var(--black);
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  max-width: none;
}

@media (max-width: 860px) {
  .hero__image {
    object-position: 76% center;
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.82) 0%, rgba(9, 9, 9, 0.42) 42%, rgba(9, 9, 9, 0.08) 100%),
    linear-gradient(180deg, rgba(9, 9, 9, 0.45), transparent 22%, rgba(9, 9, 9, 0.28) 72%, var(--black));
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 40px));
  margin-left: max(20px, calc((100% - 1180px) / 2));
  padding-bottom: clamp(56px, 10vh, 110px);
}

.hero__title {
  font-size: clamp(2.7rem, 7.2vw, 6.4rem);
  max-width: 12ch;
}

.hero__title span {
  display: block;
}

.hero__subtitle {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.05rem;
  color: rgba(247, 244, 238, 0.88);
}

.hero__actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__eyebrow,
.hero__title,
.hero__subtitle,
.hero__actions {
  animation: fade-up 1s ease both;
}

.hero__title { animation-delay: 0.12s; }
.hero__subtitle { animation-delay: 0.24s; }
.hero__actions { animation-delay: 0.36s; }

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: transform 0.35s ease, background 0.35s ease, color 0.35s ease, border-color 0.35s ease, filter 0.35s ease;
}

.btn--gold {
  background: linear-gradient(180deg, #e6d09a 0%, #c8a96b 48%, #b08d4e 100%);
  color: var(--ink);
  border-color: #c8a96b;
}

.btn--gold:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.btn--ghost,
.btn--line {
  border-color: rgba(247, 244, 238, 0.5);
  color: var(--ivory);
}

.btn--ghost:hover,
.btn--line:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.section--ivory .btn--line,
.form-card .btn--line,
.form-card .btn--ghost {
  border-color: rgba(20, 20, 20, 0.4);
  color: var(--ink);
}

.section--ivory .btn--line:hover,
.form-card .btn--ghost:hover,
.form-card .btn--line:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

.btn--dark {
  background: var(--ink);
  color: var(--ivory);
}

.btn--dark:hover {
  background: #000;
}

.btn--full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Collections */

.collection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.collection-card {
  position: relative;
  display: flex;
  min-height: 460px;
  overflow: hidden;
  border-radius: 18px;
  text-decoration: none;
  color: var(--ivory);
  isolation: isolate;
}

.collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #090909;
  max-width: none;
  transition: transform 0.8s ease;
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.78));
}

.collection-card__body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.collection-card h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

.collection-card p {
  max-width: 36ch;
  color: rgba(247, 244, 238, 0.86);
}

.collection-card:hover img,
.collection-card:focus-visible img {
  transform: scale(1.06);
}

/* Products */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #161616;
  border: 1px solid rgba(200, 169, 107, 0.16);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
  transition: transform 0.4s ease, border-color 0.4s ease, background-color 0.45s ease, color 0.45s ease, box-shadow 0.45s ease;
}

.section--ivory .product-card {
  background: #fff;
  border-color: rgba(20, 20, 20, 0.08);
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.05);
}

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(200, 169, 107, 0.55);
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  z-index: 2;
  transition: opacity 0.4s ease;
}

.product-card:hover::before,
.product-card:focus-within::before {
  opacity: 1;
}

.product-card__zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background:
    radial-gradient(ellipse at center, rgba(200, 169, 107, 0.1), transparent 68%),
    #141414;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  color: inherit;
  text-decoration: none;
  position: relative;
}

.product-card__zoom img,
.modal__media img,
.cart-item img {
  object-fit: contain;
  object-position: center;
}

.product-card__zoom img {
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 8%;
  transition: transform 0.7s ease, opacity 0.45s ease;
}

.product-card__zoom.is-loading img,
.modal__media.is-loading img {
  opacity: 0;
}

.product-card__zoom.is-loading::after,
.modal__media.is-loading::after {
  content: "";
  position: absolute;
  left: 30%;
  right: 30%;
  top: 16%;
  bottom: 14%;
  border-radius: 46% 46% 18% 18%;
  background: linear-gradient(180deg, rgba(200, 169, 107, 0.28), rgba(247, 244, 238, 0.05));
  animation: media-in 1.3s ease infinite;
}

@keyframes media-in {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}

.product-card:hover .product-card__zoom img,
.product-card:focus-within .product-card__zoom img {
  transform: scale(1.06);
}

.product-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 18px;
  flex: 1;
}

.product-card__brand {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.product-card__name {
  font-family: var(--serif);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.05;
  min-height: 2.1em;
}

.product-card__meta {
  color: var(--gray);
  font-size: 0.88rem;
}

.section--ivory .product-card__meta {
  color: #6d685f;
}

.product-card__price {
  margin-top: 6px;
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.section--ivory .product-card__price {
  color: var(--gold-deep);
}

.product-card__price small,
.specs small,
.grand small {
  margin-left: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray);
}

.product-card__price.is-pending {
  color: var(--gray);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-card__actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

/* Why */

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.why-card {
  padding-top: 22px;
  border-top: 1px solid rgba(200, 169, 107, 0.45);
}

.why-card svg {
  width: 42px;
  height: 42px;
  color: var(--gold);
  margin-bottom: 18px;
}

.why-card h3 {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--gray);
}

/* Instagram */

.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.insta-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  transition: transform 0.6s ease, opacity 0.6s ease;
}

.insta-grid img:hover {
  transform: scale(1.03);
  opacity: 0.92;
}

.insta-actions {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* Page hero */

.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 64px;
  background: var(--black);
  overflow: hidden;
}

.page-hero img.page-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
  z-index: 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.35), rgba(9, 9, 9, 0.82));
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  max-width: 12ch;
}

.page-hero p:last-child {
  margin-top: 16px;
  color: rgba(247, 244, 238, 0.86);
  font-size: 1.15rem;
}

.page-contact .page-hero,
.page-catalogue .page-hero {
  min-height: 0;
  padding: 148px 0 12px;
  background: var(--black);
}

.page-contact .page-hero::before,
.page-catalogue .page-hero::before {
  display: none;
}

/* Catalogue */

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px 20px;
  align-items: end;
  margin: 8px 0 6px;
}

.tabs {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(200, 169, 107, 0.35);
  background: transparent;
  color: var(--ivory);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.66rem;
}

.tab[aria-selected="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.search,
.sort,
.field {
  display: grid;
  gap: 6px;
}

.search {
  position: relative;
}

.search__icon {
  position: absolute;
  left: 0;
  bottom: 14px;
  width: 18px;
  height: 18px;
  color: var(--gold);
  pointer-events: none;
}

.search input,
.sort select,
.sort__button,
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(200, 169, 107, 0.45);
  border-radius: 0;
  padding: 14px 0;
  font-size: 16px;
}

.search input {
  padding-left: 28px;
}

.sort {
  position: relative;
}

.sort select,
.sort__button {
  appearance: none;
  padding-right: 28px;
  text-align: left;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 14px) 55%, calc(100% - 8px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.sort select option {
  background-color: #161616;
  color: #f7f4ee;
}

.sort select option:hover,
.sort select option:focus,
.sort select option:checked {
  background-color: #c8a96b;
  color: #141414;
}

.sort.is-enhanced select {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  pointer-events: none;
}

.sort__menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  min-width: 220px;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 6px;
  background: #161616;
  color: #f7f4ee;
  border: 1px solid rgba(200, 169, 107, 0.45);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.sort__menu [role="option"] {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #f7f4ee;
  background: transparent;
  cursor: pointer;
  line-height: 1.3;
}

.sort__menu [role="option"][aria-selected="true"] {
  background: rgba(200, 169, 107, 0.18);
  color: #e4c98a;
}

.sort__menu [role="option"]:hover,
.sort__menu [role="option"]:focus {
  background: #c8a96b;
  color: #141414;
  outline: none;
}

.search input:focus,
.sort select:focus,
.sort__button:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--gold);
}

.sort span,
.field span {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.result-count {
  color: var(--gray);
  margin: 10px 0 28px;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
}

.catalog-group {
  margin-bottom: 56px;
}

.catalog-group__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.catalog-group h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.catalog-group__head span {
  color: var(--gray);
  font-size: 0.85rem;
}

.empty {
  text-align: center;
  padding: 72px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.empty__title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}

.empty p + .btn,
.empty .btn {
  margin-top: 22px;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.modal.is-open {
  pointer-events: auto;
}

.modal__backdrop,
.cart__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal.is-open .modal__backdrop,
.cart.is-open .cart__backdrop {
  opacity: 1;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 32px));
  max-height: min(88vh, 760px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #121212;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.45s ease, color 0.45s ease;
}

.modal.is-open .modal__dialog {
  opacity: 1;
  transform: none;
}

.modal__media {
  position: relative;
  background:
    radial-gradient(ellipse at center, rgba(200, 169, 107, 0.1), transparent 68%),
    #141414;
  min-height: 100%;
}

.modal__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 7%;
  transition: opacity 0.45s ease;
}

.modal__info {
  overflow: auto;
  padding: 48px 32px 32px;
}

.modal__name {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 500;
  line-height: 0.95;
  text-transform: uppercase;
}

.modal__desc {
  margin-top: 16px;
  color: rgba(247, 244, 238, 0.86);
}

.modal__info .cart-note {
  margin-top: 14px;
}

#modal-order {
  margin-top: 10px;
}

.format-label {
  margin: 22px 0 10px;
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.formats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  gap: 8px;
}

.format {
  min-height: 48px;
  padding: 10px 6px;
  border: 1px solid rgba(200, 169, 107, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--ivory);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.format.is-selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #141414;
}

.format:hover {
  border-color: var(--gold);
}

.format:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

#modal-price {
  font-family: var(--serif);
  font-size: 1.7rem;
}

#modal-price.is-pending {
  color: var(--gray);
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

#modal-price.is-update {
  animation: price-in 0.28s ease;
}

@keyframes price-in {
  from { opacity: 0.25; }
  to { opacity: 1; }
}

.order-fallback {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(200, 169, 107, 0.35);
  border-radius: 12px;
}

.order-fallback p,
.order-fallback pre {
  color: rgba(247, 244, 238, 0.86);
}

.order-fallback pre {
  margin: 12px 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.92rem;
}

.order-fallback .btn {
  margin-top: 4px;
}

.specs {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.specs div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(200, 169, 107, 0.18);
}

.specs dt {
  color: var(--gray);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.specs dd {
  margin: 0;
  text-align: right;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(247, 244, 238, 0.35);
  background: rgba(9, 9, 9, 0.45);
  color: var(--ivory);
  font-size: 1.4rem;
  line-height: 1;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(200, 169, 107, 0.45);
  border-radius: 999px;
}

.qty button {
  width: 42px;
  height: 42px;
  background: none;
  border: 0;
  color: inherit;
}

.qty span {
  min-width: 1.5rem;
  text-align: center;
}

/* Cart */

.cart {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.cart.is-open {
  pointer-events: auto;
}

.cart__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(440px, 100%);
  background: #101010;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transform: translateX(28px);
  opacity: 0;
  transition: transform 0.38s ease, opacity 0.38s ease, background-color 0.45s ease, color 0.45s ease;
}

.cart.is-open .cart__panel {
  transform: none;
  opacity: 1;
}

.cart__header,
.cart__footer {
  padding: 18px 22px;
}

.cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart__header h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.cart__body {
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 6px 22px 22px;
}

.cart__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-list {
  display: grid;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item img {
  width: 72px;
  height: 90px;
  object-fit: contain;
  object-position: center;
  padding: 4px;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at center, rgba(200, 169, 107, 0.12), transparent 70%),
    #141414;
}

.cart-item__brand {
  color: var(--gold);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cart-item__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.1;
}

.cart-item__meta,
.cart-note,
.cart-preview p {
  color: var(--gray);
  font-size: 0.86rem;
}

.cart-item__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.linkish:hover {
  color: var(--gold);
}

.cart-empty {
  min-height: 50vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
}

.cart-empty__title {
  font-family: var(--serif);
  font-size: 2.2rem;
}

.totals {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.totals .grand {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin-top: 4px;
}

.cart-note {
  margin-bottom: 14px;
}

.cart-preview {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.checkout {
  display: grid;
  gap: 16px;
  padding: 8px 0 18px;
}

.checkout__kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.checkout h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 500;
  line-height: 0.95;
}

.checkout__lead,
.checkout-identity p,
.checkout-line span,
.checkout-confirm p {
  margin: 0;
  color: var(--gray);
  font-size: 0.92rem;
}

.checkout .field {
  display: grid;
  gap: 0;
}

.checkout .field span {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.checkout-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.checkout-cart {
  margin-bottom: 4px;
}

.delivery-wrap {
  display: grid;
  gap: 8px;
}

.delivery {
  margin: 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
  width: 100%;
  display: grid;
  gap: 8px;
}

.delivery legend {
  margin-bottom: 2px;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.delivery__option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border: 1px solid rgba(200, 169, 107, 0.45);
  border-radius: 14px;
  cursor: pointer;
  color: var(--ivory);
}

.delivery__option input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--gold);
}

.delivery__option.is-selected {
  background: var(--gold);
  border-color: var(--gold);
  color: #141414;
}

.delivery__option.is-selected input {
  accent-color: #141414;
}

.delivery__option:hover {
  border-color: var(--gold);
}

.delivery__option:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.delivery__copy {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.delivery__copy strong {
  flex: 1;
  font-weight: 500;
  line-height: 1.3;
}

.delivery__copy em {
  flex: none;
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.delivery.is-invalid .delivery__option {
  border-color: #a24a3d;
}

.checkout-bill {
  display: grid;
  gap: 8px;
}

.checkout-bill__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0;
}

.checkout-bill small {
  display: block;
  color: var(--gray);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-bill .checkout-total {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.checkout-identity,
.checkout-confirm {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.checkout-confirm {
  background: rgba(200, 169, 107, 0.08);
}

.checkout-lines {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-line {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-line strong {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.1;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0;
  font-family: var(--serif);
  font-size: 1.85rem;
}

.checkout-total small {
  display: block;
  color: var(--gray);
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout pre {
  margin: 0;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--gray);
  font-size: 0.82rem;
}

.cart-preview pre,
.form-result pre {
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 0.88rem;
  margin: 10px 0 0;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}

.contact-copy {
  color: var(--gray);
  max-width: 42ch;
  margin-top: 12px;
}

.info-list {
  display: grid;
  gap: 22px;
  margin-top: 32px;
}

.info-item span {
  display: block;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin-bottom: 4px;
}

.info-item p,
.info-item a {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.2;
  text-decoration: none;
}

.info-item .config-hint {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--gray);
  margin-top: 8px;
}

.info-item a:hover {
  color: var(--gold);
}

.config-hint,
.form-disclaimer {
  margin-top: 22px;
  color: var(--gray);
  font-size: 0.88rem;
}

.form-card {
  background: var(--ivory);
  color: var(--ink);
  border-radius: 18px;
  padding: clamp(24px, 4vw, 42px);
  color-scheme: light;
}

.form-card h2 {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-card .form-disclaimer {
  color: #5e594f;
  margin: 10px 0 22px;
}

.form-card .field input,
.form-card .field textarea {
  color: var(--ink);
  border-bottom-color: rgba(20, 20, 20, 0.22);
}

.form-card .field span {
  color: var(--gold-deep);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.field.is-invalid input,
.field.is-invalid textarea {
  border-bottom-color: #a24a3d;
}

.field__error {
  min-height: 1.1em;
  color: #8d3d34;
  font-size: 0.82rem;
}

.form-card .btn--dark {
  margin-top: 8px;
}

.form-result {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(20, 20, 20, 0.1);
}

.form-result h3 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 500;
}

.form-result pre {
  background: rgba(20, 20, 20, 0.04);
  padding: 14px;
  border-radius: 12px;
}

/* FAQ */

.faq {
  max-width: 860px;
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: none;
  border: 0;
  text-align: left;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.faq__icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.faq__icon::after {
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

.faq__button[aria-expanded="true"] .faq__icon::after {
  transform: rotate(0deg);
}

.faq__panel {
  padding: 0 0 22px;
  color: var(--gray);
  max-width: 68ch;
}

/* Footer */

.footer {
  background: #050505;
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}

.footer__tagline {
  margin-top: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--gold);
}

.footer__note,
.footer__place,
.footer__bottom,
.footer a {
  color: var(--gray);
}

.footer__note,
.footer__place {
  margin-top: 12px;
  max-width: 36ch;
}

.footer__label {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.68rem;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer__links {
  display: grid;
  gap: 8px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--gold);
}

.footer__bottom {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

/* Toast */

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 90;
  transform: translateX(-50%) translateY(12px);
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(460px, calc(100% - 28px));
  padding: 12px 12px 12px 16px;
  background: var(--ivory);
  color: var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%);
}

.toast__btn {
  margin-left: auto;
  border: 0;
  background: var(--ink);
  color: var(--ivory);
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bump {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Scrollbar */

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--black);
}

::-webkit-scrollbar-thumb {
  background: #3a3328;
  border-radius: 99px;
}

/* Responsive */

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .header__inner {
    display: flex;
    justify-content: space-between;
    width: min(1440px, calc(100% - 28px));
  }

  .burger {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: 0;
    background: var(--black);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 18px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.45s ease, color 0.45s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav__link {
    font-family: var(--serif);
    font-size: 2.3rem;
    letter-spacing: 0.08em;
  }

  .collection-grid,
  .contact-layout,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .collection-card {
    min-height: 380px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insta-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal__dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .modal__media {
    min-height: 320px;
    aspect-ratio: 4 / 5;
  }

  .modal__media img {
    height: 100%;
  }

  .page-hero {
    min-height: 42vh;
  }
}

@media (max-width: 720px) {
  .toolbar {
    grid-template-columns: 1fr;
  }

  .section__top,
  .footer__bottom,
  .catalog-group__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__actions .btn,
  .form-card .inline-actions .btn {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(1180px, calc(100% - 28px));
  }

  .hero__title,
  .page-hero h1,
  .section__top h2 {
    font-size: 2.15rem;
    max-width: none;
  }

  .hero__content {
    width: calc(100% - 32px);
    margin-left: 16px;
  }

  .product-grid,
  .why-grid,
  .insta-grid {
    grid-template-columns: 1fr;
  }

  .insta-grid {
    grid-template-columns: 1fr 1fr;
  }

  .collection-card {
    min-height: 420px;
  }

  .toast {
    border-radius: 16px;
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Mode clair — le mode sombre reste le thème par défaut */

html[data-theme="light"] {
  color-scheme: light;
  --page: #f7f4ee;
  --page-deep: #efe8db;
  --page-soft: #fbf8f3;
  --card: #fffcf8;
  --media: #f3ece2;
  --text: #171512;
  --muted: #5c564c;
  --line-soft: rgba(110, 87, 48, 0.22);
  --hairline: rgba(23, 21, 18, 0.08);
}

html[data-theme="light"] body {
  background: var(--page);
  color: var(--text);
}

html[data-theme="light"] .section--black,
html[data-theme="light"] .page-contact .page-hero,
html[data-theme="light"] .page-catalogue .page-hero {
  background: var(--page);
}

html[data-theme="light"] .page-catalogue .page-hero {
  color: var(--text);
}

html[data-theme="light"] .page-catalogue .page-hero p:last-child {
  color: var(--muted);
}

html[data-theme="light"] .section--ink {
  background: var(--page-deep);
}

html[data-theme="light"] .section--ivory {
  background: var(--page-soft);
  color: var(--text);
}

html[data-theme="light"] .header.is-solid,
html[data-theme="light"] .header--solid {
  background: rgba(247, 244, 238, 0.96);
  border-bottom-color: var(--line-soft);
}

html[data-theme="light"] .nav__link,
html[data-theme="light"] .logo,
html[data-theme="light"] .icon-btn,
html[data-theme="light"] .burger,
html[data-theme="light"] .cart-toggle,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .header-instagram,
html[data-theme="light"] .header-tiktok {
  color: var(--text);
}

html[data-theme="light"] .logo__rs,
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .product-card__brand,
html[data-theme="light"] .format-label,
html[data-theme="light"] .search__icon,
html[data-theme="light"] .sort span,
html[data-theme="light"] .field span,
html[data-theme="light"] .why-card svg,
html[data-theme="light"] .info-item span,
html[data-theme="light"] .footer__label,
html[data-theme="light"] .footer__tagline,
html[data-theme="light"] .cart-item__brand,
html[data-theme="light"] .section--ivory .eyebrow,
html[data-theme="light"] .section--ivory .product-card__brand,
html[data-theme="light"] .section--ivory .product-card__price {
  color: var(--gold-deep);
}

html[data-theme="light"] .section__lead,
html[data-theme="light"] .demo-note,
html[data-theme="light"] .section--ivory .section__lead,
html[data-theme="light"] .section--ivory .demo-note,
html[data-theme="light"] .product-card__meta,
html[data-theme="light"] .section--ivory .product-card__meta,
html[data-theme="light"] .product-card__price small,
html[data-theme="light"] .product-card__price.is-pending,
html[data-theme="light"] .why-card p,
html[data-theme="light"] .result-count,
html[data-theme="light"] .catalog-group__head span,
html[data-theme="light"] .specs dt,
html[data-theme="light"] .cart-item__meta,
html[data-theme="light"] .cart-note,
html[data-theme="light"] .cart-preview p,
html[data-theme="light"] .contact-copy,
html[data-theme="light"] .config-hint,
html[data-theme="light"] .faq__panel,
html[data-theme="light"] .footer__note,
html[data-theme="light"] .footer__place,
html[data-theme="light"] .footer__bottom,
html[data-theme="light"] .footer a,
html[data-theme="light"] .linkish,
html[data-theme="light"] #modal-price.is-pending,
html[data-theme="light"] .specs small,
html[data-theme="light"] .grand small {
  color: var(--muted);
}

html[data-theme="light"] .header:not(.is-solid):not(.header--solid) .header__actions .theme-toggle,
html[data-theme="light"] .header:not(.is-solid):not(.header--solid) .header__actions .header-instagram,
html[data-theme="light"] .header:not(.is-solid):not(.header--solid) .header__actions .header-tiktok,
html[data-theme="light"] .header:not(.is-solid):not(.header--solid) .header__actions .cart-toggle,
html[data-theme="light"] .header:not(.is-solid):not(.header--solid) .header__actions .burger,
html[data-theme="light"] .header:not(.is-solid):not(.header--solid) .nav:not(.is-open) .nav__link,
html[data-theme="light"] .header:not(.is-solid):not(.header--solid) .logo,
html[data-theme="light"] .header:not(.is-solid):not(.header--solid) .logo__word {
  color: var(--ivory);
}

html[data-theme="light"] .header:not(.is-solid):not(.header--solid) .logo__rs,
html[data-theme="light"] .hero .eyebrow,
html[data-theme="light"] .page-catalogue .page-hero .eyebrow,
html[data-theme="light"] .collection-card .eyebrow {
  color: var(--gold);
}

html[data-theme="light"] .header:not(.is-solid):not(.header--solid):has(.nav.is-open) .header__actions .theme-toggle,
html[data-theme="light"] .header:not(.is-solid):not(.header--solid):has(.nav.is-open) .header__actions .header-instagram,
html[data-theme="light"] .header:not(.is-solid):not(.header--solid):has(.nav.is-open) .header__actions .header-tiktok,
html[data-theme="light"] .header:not(.is-solid):not(.header--solid):has(.nav.is-open) .header__actions .cart-toggle,
html[data-theme="light"] .header:not(.is-solid):not(.header--solid):has(.nav.is-open) .header__actions .burger,
html[data-theme="light"] .header:not(.is-solid):not(.header--solid):has(.nav.is-open) .logo,
html[data-theme="light"] .header:not(.is-solid):not(.header--solid):has(.nav.is-open) .logo__word {
  color: var(--text);
}

html[data-theme="light"] .header:has(.nav.is-open) .logo__rs {
  color: var(--gold-deep);
}

html[data-theme="light"] .nav.is-open .nav__link {
  color: var(--text);
}

html[data-theme="light"] .hero,
html[data-theme="light"] .collection-card,
html[data-theme="light"] .collection-card h3 {
  color: var(--ivory);
}

html[data-theme="light"] .hero__subtitle,
html[data-theme="light"] .collection-card p {
  color: rgba(247, 244, 238, 0.88);
}

html[data-theme="light"] .hero .btn--ghost,
html[data-theme="light"] .hero .btn--ghost:hover {
  color: var(--ivory);
  border-color: rgba(247, 244, 238, 0.5);
}

html[data-theme="light"] .hero .btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

html[data-theme="light"] .product-card {
  background: var(--card);
  border-color: var(--line-soft);
  box-shadow: 0 16px 36px rgba(70, 50, 20, 0.05);
}

html[data-theme="light"] .section--ivory .product-card {
  background: #fff;
  border-color: var(--hairline);
}

html[data-theme="light"] .product-card__zoom,
html[data-theme="light"] .modal__media,
html[data-theme="light"] .cart-item img {
  background:
    radial-gradient(ellipse at center, rgba(200, 169, 107, 0.18), transparent 70%),
    #f7f4ee;
}

html[data-theme="light"] .tab,
html[data-theme="light"] .format,
html[data-theme="light"] .btn--ghost,
html[data-theme="light"] .btn--line {
  color: var(--text);
  border-color: rgba(23, 21, 18, 0.28);
}

html[data-theme="light"] .tab[aria-selected="true"],
html[data-theme="light"] .format.is-selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

html[data-theme="light"] .btn--ghost:hover,
html[data-theme="light"] .btn--line:hover,
html[data-theme="light"] .linkish:hover,
html[data-theme="light"] .footer a:hover,
html[data-theme="light"] .info-item a:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

html[data-theme="light"] .search input,
html[data-theme="light"] .sort select,
html[data-theme="light"] .sort__button,
html[data-theme="light"] .field input,
html[data-theme="light"] .field textarea {
  color: var(--text);
  border-bottom-color: var(--line-soft);
}

html[data-theme="light"] .sort select option {
  background-color: #fffcf8;
  color: #171512;
}

html[data-theme="light"] .sort select option:hover,
html[data-theme="light"] .sort select option:focus,
html[data-theme="light"] .sort select option:checked {
  background-color: #c8a96b;
  color: #141414;
}

html[data-theme="light"] .sort__menu {
  background: #fffcf8;
  color: #171512;
  border-color: rgba(110, 87, 48, 0.28);
  box-shadow: 0 18px 40px rgba(70, 50, 20, 0.12);
}

html[data-theme="light"] .sort__menu [role="option"] {
  color: #171512;
}

html[data-theme="light"] .sort__menu [role="option"][aria-selected="true"] {
  background: rgba(200, 169, 107, 0.28);
  color: #3d2e16;
}

html[data-theme="light"] .sort__menu [role="option"]:hover,
html[data-theme="light"] .sort__menu [role="option"]:focus {
  background: #c8a96b;
  color: #141414;
}

html[data-theme="light"] .modal__dialog,
html[data-theme="light"] .cart__panel {
  background: var(--card);
  color: var(--text);
}

html[data-theme="light"] .modal__desc,
html[data-theme="light"] .order-fallback p,
html[data-theme="light"] .order-fallback pre {
  color: #3e392f;
}

html[data-theme="light"] .order-fallback,
html[data-theme="light"] .cart-preview,
html[data-theme="light"] .empty {
  border-color: var(--line-soft);
}

html[data-theme="light"] .specs div,
html[data-theme="light"] .faq__item,
html[data-theme="light"] .catalog-group__head {
  border-bottom-color: var(--line-soft);
}

html[data-theme="light"] .modal__close {
  background: rgba(255, 252, 248, 0.82);
  color: var(--text);
  border-color: rgba(23, 21, 18, 0.16);
}

html[data-theme="light"] .checkout-line,
html[data-theme="light"] .checkout-bill .checkout-total {
  border-bottom-color: var(--hairline);
  border-top-color: var(--hairline);
}

html[data-theme="light"] .delivery__option {
  color: var(--text);
}

html[data-theme="light"] .delivery__option.is-selected {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

html[data-theme="light"] .checkout-identity,
html[data-theme="light"] .checkout-confirm {
  background: rgba(200, 169, 107, 0.12);
}

html[data-theme="light"] .cart__header,
html[data-theme="light"] .cart__footer,
html[data-theme="light"] .cart-item,
html[data-theme="light"] .footer__bottom {
  border-color: var(--hairline);
}

html[data-theme="light"] .footer {
  background: #e9e1d2;
  color: var(--text);
}

html[data-theme="light"] .form-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  box-shadow: 0 18px 40px rgba(70, 50, 20, 0.05);
}

html[data-theme="light"] .toast {
  background: var(--text);
  color: var(--ivory);
}

html[data-theme="light"] .toast__btn {
  background: var(--gold);
  color: var(--ink);
}

html[data-theme="light"] ::-webkit-scrollbar-track {
  background: var(--page);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #c4b49a;
}

@media (max-width: 860px) {
  html[data-theme="light"] .nav {
    background: var(--page);
    color: var(--text);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.theme-ready .theme-toggle__icon {
    transition: opacity 0.35s ease, transform 0.35s ease;
  }

  html.theme-ready :where(
    body,
    .section,
    .page-hero,
    .product-card__zoom,
    .product-card__body,
    .product-card__name,
    .product-card__meta,
    .product-card__price,
    .product-card__brand,
    .modal__media,
    .modal__info,
    .modal__desc,
    .footer,
    .form-card,
    .tab,
    .format,
    .faq__button,
    .faq__panel,
    .why-card,
    .why-card p,
    .eyebrow,
    .demo-note,
    .section__lead,
    .nav__link,
    .logo,
    .logo__rs,
    .icon-btn,
    .burger,
    .cart-toggle,
    .theme-toggle,
    .header-instagram,
    .header-tiktok,
    .toast,
    .search input,
    .sort select,
    .field input,
    .field textarea,
    .info-item,
    .contact-copy,
    .footer__bottom,
    .cart-item,
    .cart__header,
    .cart__footer
  ) {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
  }
}

@media (max-width: 420px) {
  .header__inner {
    width: min(1440px, calc(100% - 16px));
  }

  .header-instagram,
  .header-tiktok,
  .theme-toggle,
  .cart-toggle,
  .burger {
    width: 36px;
  }

  .logo img {
    height: 48px;
  }

  .footer .logo img {
    height: 96px;
  }
}
