/* Maison Dey — women-only luxury refinement.
   A restrained identity pass over the existing commerce system: the routes,
   controls and interaction model stay familiar while colour, scale and image
   direction make the house unmistakably feminine. */

:root {
  --cc-ink: #171313;
  --cc-graphite: #342e2f;
  --cc-paper: #fbfaf8;
  --cc-bone: #eee9e8;
  --cc-muted: #655e5e;
  --cc-faint: #8d8585;
  --cc-line: rgba(46, 31, 34, 0.17);
  --cc-burgundy: #76293b;
  --cc-error: #8d2333;
  --cc-success: #315b43;
  --cc-header-bg: #fbfaf8;
  --cc-footer-bg: #171313;
  --cc-footer-text: #fbfaf8;
  --btn-bg: #76293b;
  --btn-bg-hover: #541b29;
  --btn-text: #ffffff;
}

::selection {
  color: #fff;
  background: var(--cc-burgundy);
}

.at-utility {
  background: #35151e;
}

.at-header[data-invert="true"] {
  border-color: rgba(255, 255, 255, 0.42);
}

.at-header[data-stuck="true"] {
  box-shadow: 0 1px 0 rgba(118, 41, 59, 0.08);
}

.at-brand-lockup__name {
  letter-spacing: 0.025em;
}

.at-nav__link[data-signal="true"] {
  color: var(--cc-burgundy);
}

.at-header[data-invert="true"] .at-nav__link[data-signal="true"] {
  color: #fff;
}

#navPanel {
  background: #24171a;
}

#navPanel .at-navpanel__link:hover,
#navPanel .at-navpanel__link:focus-visible {
  color: #e5b9c3;
  opacity: 1;
}

.at-wa,
.cc-service a {
  background: var(--cc-burgundy);
}

/* The same two-part hero idea, now both sides belong to the women's house. */
.cc-hero {
  background: #24171a;
}

.cc-hero__panel--primary {
  flex: 1.68 1 0%;
}

.cc-hero__panel--support {
  flex: 0.72 1 0%;
}

.cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel--primary {
  flex: 1.52 1 0%;
}

.cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel--primary:hover,
.cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel--primary:focus-within {
  flex: 1.82 1 0%;
}

.cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel--support {
  flex: 0.66 1 0%;
}

.cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel--support:hover,
.cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel--support:focus-within {
  flex: 0.88 1 0%;
}

.cc-hero__panel::after {
  background:
    linear-gradient(90deg, rgba(28, 14, 18, 0.48), rgba(20, 14, 15, 0.02) 58%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 34%, rgba(24, 12, 16, 0.67));
}

.cc-hero__panel--primary img {
  object-position: center 28%;
  filter: saturate(0.78) contrast(1.04);
}

.cc-hero__panel--support img {
  object-position: 54% 30%;
  filter: saturate(0.67) contrast(1.04);
}

.cc-hero__copy {
  width: min(82vw, 940px);
}

.cc-hero__copy > p {
  letter-spacing: 0.2em;
}

.cc-hero__copy h1 {
  font-size: clamp(48px, 7.7vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 18px rgba(24, 12, 16, 0.28);
}

.cc-hero__department {
  border-color: rgba(255, 255, 255, 0.58);
}

.cc-hero__department b {
  letter-spacing: -0.018em;
}

.cc-hero__edition {
  color: rgba(255, 255, 255, 0.84);
}

/* Quiet luxury details across collection, product, cart and account pages. */
.pt-title,
.rec__title,
.cc-page-title,
.at-footer h2 {
  letter-spacing: -0.025em;
}

.pt-axis input:checked + span,
.pt-size input:checked + span,
.rec__option input:checked + label {
  border-color: var(--cc-burgundy);
}

.rec__purchase-price strong,
.at-price,
.pt-piece__price {
  color: var(--cc-burgundy);
}

.m-input:focus,
.m-select:focus,
.m-textarea:focus,
.pt-find__input:focus {
  border-color: var(--cc-burgundy);
}

@media (max-width: 719px) {
  .cc-hero__panels {
    flex-direction: column;
  }

  .cc-hero__panel--primary {
    flex: 1.62 1 0%;
  }

  .cc-hero__panel--support {
    flex: 0.58 1 0%;
  }

  .cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel--primary,
  .cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel--primary:hover,
  .cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel--primary:focus-within {
    flex: 1.62 1 0%;
  }

  .cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel--support,
  .cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel--support:hover,
  .cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel--support:focus-within {
    flex: 0.58 1 0%;
  }

  .cc-hero__panel--primary img {
    object-position: 51% 24%;
  }

  .cc-hero__panel--support img {
    object-position: 50% 34%;
  }

  .cc-hero__copy {
    top: 90px;
  }

  .cc-hero__copy h1 {
    max-width: 9ch;
    font-size: clamp(34px, 11.6vw, 52px);
    line-height: 0.9;
  }

  .cc-hero__department b {
    font-size: 31px;
  }

  .cc-hero__panel--support .cc-hero__department b {
    font-size: 25px;
  }

  .cc-hero__panel--support .cc-hero__department {
    bottom: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-hero__panel,
  .cc-hero__panel img {
    transition: none;
  }
}

/* Homepage layout refinement: copy and photography occupy separate zones.
   This preserves the two-image concept while giving each element one job. */
.cc-home .cc-hero {
  min-height: clamp(620px, 84svh, 820px);
}

.cc-home .cc-hero__panels {
  inset: 0 0 0 34%;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.85fr);
  overflow: hidden;
}

.cc-home .cc-hero__panel,
.cc-home .cc-hero__panel--primary,
.cc-home .cc-hero__panel--support,
.cc-home .cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel,
.cc-home .cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel:hover,
.cc-home .cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel:focus-within {
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  flex: none;
}

.cc-home .cc-hero__panel::after {
  display: none;
}

.cc-home .cc-hero__panel img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  transform: none;
}

.cc-home .cc-hero__panel:hover img,
.cc-home .cc-hero__panel:focus-within img {
  transform: scale(1.012);
}

.cc-home .cc-hero__panel--primary img {
  object-position: 52% 27%;
}

.cc-home .cc-hero__panel--support img {
  object-position: 50% 30%;
}

.cc-home .cc-hero__department {
  position: static;
  inset: auto;
  min-height: 72px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  color: var(--cc-ink);
  background: var(--cc-paper);
  border: 0;
  border-top: 1px solid var(--cc-line);
  transform: none;
}

.cc-home .cc-hero__panel:hover .cc-hero__department {
  transform: none;
}

.cc-home .cc-hero__department b {
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1;
}

.cc-home .cc-hero__department > span {
  display: none;
}

.cc-home .cc-hero__department .m-i {
  width: 18px;
}

.cc-home .cc-hero__copy {
  inset: 0 auto 0 0;
  width: 34%;
  padding: clamp(132px, 15vh, 168px) clamp(24px, 3.4vw, 52px) 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  color: #fff;
  background: #24171a;
  transform: none;
  pointer-events: auto;
}

html[dir="rtl"] .cc-home .cc-hero__copy {
  left: auto;
  right: 0;
  transform: none;
}

html[dir="rtl"] .cc-home .cc-hero__panels {
  inset: 0 34% 0 0;
}

.cc-home .cc-hero__copy > p:first-child {
  margin: 0 0 16px;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.cc-home .cc-hero__copy h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-align: start;
  text-shadow: none;
}

.cc-home .cc-hero__copy h1 span,
.cc-home .cc-hero__copy h1 span:nth-child(2) {
  margin: 0;
  text-align: start;
}

.cc-home .cc-hero__title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.22em;
}

.cc-home .cc-hero__title-line i {
  display: inline-block;
}

.cc-home .cc-hero__lede {
  max-width: 31ch;
  margin: 24px 0 0;
  color: #ddcfd2;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none;
}

.cc-home .cc-hero__copy .cc-text-link {
  margin: 24px 0 0;
}

.cc-home .cc-hero__edition {
  position: static;
  inset: auto;
  margin-top: auto;
  padding-top: 32px;
  color: #bca8ad;
  writing-mode: horizontal-tb;
  font-size: 9px;
  letter-spacing: 0.16em;
}

@media (max-width: 1023px) {
  .cc-home .cc-hero__panels {
    inset-inline-start: 40%;
    grid-template-columns: minmax(0, 1.2fr) minmax(190px, 0.8fr);
  }

  html[dir="rtl"] .cc-home .cc-hero__panels {
    inset-inline: 0 40%;
  }

  .cc-home .cc-hero__copy {
    width: 40%;
    padding-inline: 28px;
  }

  .cc-home .cc-hero__copy h1 {
    font-size: clamp(36px, 4.8vw, 50px);
  }
}

@media (max-width: 719px) {
  .cc-home .cc-hero {
    min-height: auto;
    padding-top: 58px;
    display: flex;
    flex-direction: column;
  }

  .cc-home .cc-hero__copy,
  html[dir="rtl"] .cc-home .cc-hero__copy {
    position: relative;
    inset: auto;
    order: 1;
    width: 100%;
    min-height: 238px;
    padding: 28px 20px 24px;
    justify-content: flex-start;
    transform: none;
  }

  .cc-home .cc-hero__copy > p:first-child {
    margin-bottom: 12px;
    font-size: 8px;
  }

  .cc-home .cc-hero__copy h1,
  html[dir="rtl"] .cc-home .cc-hero__copy h1 {
    max-width: none;
    font-size: clamp(30px, 8.4vw, 36px);
    line-height: 1;
    text-align: start;
  }

  .cc-home .cc-hero__lede {
    margin-top: 16px;
    font-size: 13px;
    line-height: 1.5;
  }

  .cc-home .cc-hero__copy .cc-text-link {
    margin-top: 16px;
  }

  .cc-home .cc-hero__edition {
    display: none;
  }

  .cc-home .cc-hero__panels,
  html[dir="rtl"] .cc-home .cc-hero__panels {
    position: relative;
    inset: auto;
    order: 2;
    width: 100%;
    height: clamp(560px, 72svh, 660px);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1.35fr) minmax(0, 0.9fr);
  }

  .cc-home .cc-hero__panel,
  .cc-home .cc-hero__panel--primary,
  .cc-home .cc-hero__panel--support,
  .cc-home .cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel,
  .cc-home .cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel:hover,
  .cc-home .cc-hero__panels:has(.cc-hero__panel:hover, .cc-hero__panel:focus-within) .cc-hero__panel:focus-within {
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) 56px;
    flex: none;
  }

  .cc-home .cc-hero__panel--primary img,
  .cc-home .cc-hero__panel--support img {
    object-position: center 28%;
  }

  .cc-home .cc-hero__department,
  .cc-home .cc-hero__panel--support .cc-hero__department {
    min-height: 56px;
    padding: 12px 20px;
  }

  .cc-home .cc-hero__department b,
  .cc-home .cc-hero__panel--support .cc-hero__department b {
    font-size: 24px;
  }
}
