.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 240;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(46,46,46,0.16);
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  color: #2E2E2E;
  box-shadow: 0 18px 42px rgba(0,0,0,0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease, color 0.35s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

body.cookie-consent-visible .back-to-top.is-visible {
  bottom: 142px;
}

.back-to-top:hover {
  background: #2E2E2E;
  color: #fff;
}

.back-to-top::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 11px;
  height: 11px;
  border-left: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: translate(-50%, -34%) rotate(45deg);
}

.newsletter-toggle {
  border: 1px solid rgba(46,46,46,0.12);
  cursor: pointer;
}

.newsletter-panel {
  max-width: 760px;
  margin: 34px auto 0;
  padding: 34px;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(46,46,46,0.1);
  box-shadow: 0 24px 70px rgba(46,46,46,0.08);
}

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

.newsletter-form {
  display: grid;
  grid-template-columns: 0.72fr 1fr 1fr 1.35fr auto;
  gap: 14px;
  align-items: end;
}

.newsletter-field {
  display: grid;
  gap: 8px;
  text-align: left;
}

.newsletter-field label {
  font-family: var(--font-ui, Inter, system-ui, sans-serif);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gris-dark, #565656);
}

.newsletter-field input,
.newsletter-field select {
  min-height: 46px;
  width: 100%;
  border: 1px solid rgba(46,46,46,0.14);
  background: #fff;
  color: var(--charbon, #2E2E2E);
  font-family: var(--font-ui, Inter, system-ui, sans-serif);
  font-size: 0.86rem;
  padding: 0 14px;
  outline: none;
}

.newsletter-field input:focus,
.newsletter-field select:focus {
  border-color: var(--charbon, #2E2E2E);
}

.newsletter-submit {
  min-height: 46px;
  border: 0;
  background: var(--charbon, #2E2E2E);
  color: #fff;
  padding: 0 24px;
  font-family: var(--font-ui, Inter, system-ui, sans-serif);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-submit:hover {
  background: var(--rouge, #F50509);
}

.newsletter-note,
.newsletter-status {
  margin-top: 14px;
  font-family: var(--font-soul, Georgia, serif);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--gris, #787878);
  text-align: center;
}

.newsletter-status {
  min-height: 1.4em;
}

.collection-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.collection-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(46,46,46,0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.collection-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  background: #fbfaf7;
  border: 1px solid rgba(46,46,46,0.1);
  box-shadow: 0 30px 100px rgba(0,0,0,0.18);
  padding: 42px;
  text-align: center;
}

.collection-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: var(--charbon, #2E2E2E);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.collection-modal__eyebrow {
  font-family: var(--font-ui, Inter, system-ui, sans-serif);
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--rouge, #F50509);
  margin-bottom: 16px;
}

.collection-modal__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 300;
  line-height: 1.14;
  color: var(--charbon, #2E2E2E);
  margin-bottom: 18px;
}

.collection-modal__text {
  font-family: var(--font-soul, Georgia, serif);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gris, #787878);
  margin-bottom: 28px;
}

.collection-modal .newsletter-form {
  grid-template-columns: 1fr;
  text-align: left;
}

.collection-modal .newsletter-submit {
  width: 100%;
}

.cookie-consent {
  position: fixed;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 360;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 24px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(54,86,73,0.16);
  box-shadow: 0 24px 70px rgba(35,44,39,0.13);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  color: var(--charbon, #2E2E2E);
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-consent__eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-ui, Inter, system-ui, sans-serif);
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--vert, #365649);
}

.cookie-consent__text {
  margin: 0;
  font-family: var(--font-soul, Georgia, serif);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--gris-dark, #565656);
}

.cookie-consent__text a {
  color: var(--vert, #365649);
  text-underline-offset: 4px;
}

.cookie-consent__actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.cookie-consent__button {
  min-height: 42px;
  border: 1px solid rgba(54,86,73,0.24);
  background: #fff;
  color: var(--vert, #365649);
  padding: 0 18px;
  font-family: var(--font-ui, Inter, system-ui, sans-serif);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cookie-consent__button:hover {
  border-color: var(--vert, #365649);
}

.cookie-consent__button--accept {
  background: var(--vert, #365649);
  color: #fff;
}

.cookie-consent__button--accept:hover {
  background: #2d493d;
}

@media (max-width: 760px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
  }

  body.cookie-consent-visible .back-to-top.is-visible {
    bottom: 214px;
  }

  .newsletter-panel {
    padding: 24px;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .newsletter-submit {
    width: 100%;
  }

  .collection-modal__dialog {
    padding: 34px 24px;
  }

  .cookie-consent {
    left: 14px;
    right: 14px;
    bottom: 14px;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
  }

  .cookie-consent__actions {
    justify-content: stretch;
  }

  .cookie-consent__button {
    flex: 1;
    padding: 0 12px;
  }
}
