@font-face { font-family: 'DM Sans'; src: url('assets/dm-sans.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/instrument-serif.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('assets/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: light;
  --ink: #211920;
  --dark: #1c151c;
  --paper: #fffaf7;
  --white: #fff;
  --pink: #ffc2d7;
  --rose: #8e3659;
  --line: #e9dadf;
  --muted: #675965;
  --display: 'Instrument Serif', Georgia, serif;
  --body: 'DM Sans', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 1rem/1.5 var(--body); }
body.modal-open { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #a94370; outline-offset: 4px; }
.wrap { width: min(100% - 5rem, 1260px); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .7rem 1rem; background: var(--white); z-index: 3; transform: translateY(-160%); }
.skip:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.header, .hero, .footer { color: var(--paper); background: var(--dark); }
.header { border-bottom: 1px solid #ffffff20; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.header-inner { min-height: 77px; }
.wordmark { display: inline-block; font: 600 3rem/.92 var(--display); letter-spacing: -.085em; }
.wordmark span { color: var(--pink); }
.header nav { display: flex; gap: clamp(1rem, 3vw, 2.9rem); font-size: .87rem; }
.header nav a { color: #eadde4; transition: color .2s; }
.header nav a:hover { color: var(--pink); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: .7rem; width: fit-content; min-height: 46px; padding: .68rem 1.1rem; border: 1px solid transparent; border-radius: 4px; font-weight: 700; font-size: .87rem; line-height: 1.3; text-align: center; transition: background .2s, border-color .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-pink { color: var(--dark); background: var(--pink); }
.button-pink:hover { background: #ffd9e6; }
.header-contact { color: var(--paper); border-color: #ffffff55; }
.header-contact:hover { background: #ffffff14; border-color: var(--pink); }
.icon-definitions { position: absolute; overflow: hidden; }
.wa-icon { display: inline-block; width: 1.19em; height: 1.19em; flex: 0 0 auto; }
.hero { padding: clamp(2rem, 4.5vw, 4rem) 0 clamp(2rem, 4.5vw, 4rem); }
.hero-inner { display: grid; grid-template-columns: .89fr 1.11fr; align-items: stretch; gap: clamp(2rem, 4.5vw, 5rem); }
.hero-copy { align-self: center; padding-block: 1.2rem; }
.eyebrow { display: flex; align-items: center; gap: .6rem; color: var(--rose); font-size: .67rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.hero .eyebrow { color: #efd4df; }
.eyebrow span { width: 19px; height: 1px; background: currentColor; }
.hero h1 { margin: .65rem 0 1rem; font: 400 clamp(4.1rem, 8vw, 8.7rem)/.88 var(--display); letter-spacing: -.055em; }
.hero h1 em { color: var(--pink); font-weight: 400; }
.hero-copy > p:not(.eyebrow) { max-width: 31ch; color: #e9dbe2; font-size: .99rem; }
.hero-copy .button { margin-top: 1.6rem; padding-inline: 1.3rem; }
.hero-media { position: relative; isolation: isolate; aspect-ratio: 1.48; min-height: 325px; border-radius: 4px; overflow: hidden; background: #513c4b; }
.hero-media img { position: absolute; inset: 0; }
.hero-media::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px #ffffff25; pointer-events: none; }

.collections { padding-block: clamp(2.6rem, 5.5vw, 4.9rem); }
.section-heading { display: flex; gap: 1.4rem; align-items: end; justify-content: space-between; margin-bottom: 1.35rem; }
h2 { font: 400 clamp(2.75rem, 5vw, 5.15rem)/.98 var(--display); letter-spacing: -.045em; }
.text-link { display: inline-flex; width: fit-content; align-items: center; gap: .5rem; padding: .2rem 0; color: var(--rose); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.collection-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.collection-card { position: relative; isolation: isolate; display: flex; align-items: end; justify-content: space-between; min-height: 124px; padding: .8rem .9rem; overflow: hidden; color: #fff; background: #41333e; border-radius: 4px; font-weight: 700; }
.collection-card img { position: absolute; z-index: -2; inset: 0; transition: transform .3s ease; }
.collection-card::before { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(0deg, #160b16df 0%, #160b1633 72%); }
.collection-card:hover img { transform: scale(1.05); }
.collection-card [aria-hidden] { color: var(--pink); }

.catalog { background: #f8f0ef; border-block: 1px solid var(--line); padding-block: clamp(2.7rem, 5.8vw, 5rem); }
.catalog-heading { margin-bottom: 1.15rem; }
.result-count { color: var(--muted); margin-top: .4rem; font-size: .85rem; }
.search { display: flex; align-items: center; gap: .75rem; width: min(100%, 320px); padding: 0 .85rem; background: var(--white); border: 1px solid #d7c4cd; border-radius: 4px; }
.search:focus-within { border-color: var(--rose); outline: 2px solid #d88aab; }
.search input { width: 100%; min-width: 0; min-height: 46px; padding: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: .9rem; }
.search-icon { position: relative; width: 13px; height: 13px; flex: 0 0 auto; border: 1.5px solid var(--muted); border-radius: 50%; }
.search-icon::after { content: ''; position: absolute; width: 5px; height: 1.5px; right: -4px; bottom: -2px; transform: rotate(45deg); background: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.filters button { min-height: 40px; padding: .42rem .86rem; border: 1px solid #dacbd1; border-radius: 30px; background: var(--paper); font-size: .83rem; font-weight: 600; transition: background .18s, border-color .18s; }
.filters button:hover { border-color: var(--rose); }
.filters button[aria-pressed=true] { color: var(--white); background: var(--dark); border-color: var(--dark); }
.subfilters button { min-height: 36px; background: transparent; font-size: .78rem; }
.subfilters button[aria-pressed=true] { background: #edd3e0; color: #471e34; border-color: #d9a8c0; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.65rem, 1.6vw, 1.25rem); }
.product { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
.gallery { position: relative; isolation: isolate; overflow: hidden; background: #f0e7e8; }
.product-gallery .gallery { border-radius: 4px 4px 0 0; aspect-ratio: 4 / 4.65; }
.gallery-track { display: flex; width: 100%; height: 100%; overflow: auto hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide { width: 100%; height: 100%; flex: 0 0 100%; scroll-snap-align: start; border: 0; background: transparent; padding: 0; }
.gallery-slide:focus-visible { outline-offset: -4px; }
.gallery-slide img { object-fit: contain; }
.gallery-controls { position: absolute; inset: auto 0 .6rem; display: flex; gap: .15rem; justify-content: center; pointer-events: none; }
.gallery-dot { width: 28px; height: 28px; display: grid; place-items: center; padding: 0; background: none; border: 0; pointer-events: auto; }
.gallery-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1px solid #5a344a; background: #fff; }
.gallery-dot[aria-pressed=true]::before { background: #5a344a; box-shadow: 0 0 0 2px #fff; }
.gallery-arrow { position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid #e8dce2; border-radius: 50%; color: var(--ink); background: #fffaf7ed; font: 400 1.6rem/1 var(--body); }
.gallery-arrow:hover { background: var(--pink); }
.gallery-arrow.prev { left: .4rem; }
.gallery-arrow.next { right: .4rem; }
.product-copy { display: flex; flex: 1; flex-direction: column; padding: .85rem; }
.product-category { color: var(--rose); font-size: .65rem; letter-spacing: .09em; font-weight: 700; text-transform: uppercase; }
.product-title { display: block; padding: 0; border: 0; background: transparent; text-align: left; font: 400 clamp(1.38rem, 2.5vw, 1.95rem)/1.06 var(--display); }
.product-title:hover { color: var(--rose); }
.product-size { margin-top: .24rem; color: var(--muted); font-size: .83rem; }
.product-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .3rem .5rem; margin-top: auto; padding-top: .7rem; }
.product-price { font-weight: 700; font-size: 1.02rem; }
.product-contact { display: inline-flex; align-items: center; gap: .3rem; min-height: 39px; padding: .35rem .52rem; border-radius: 3px; color: #14543b; background: #e2f3e8; font-weight: 700; font-size: .75rem; transition: background .18s; }
.product-contact:hover { background: #c6ebd5; }
.more { text-align: center; margin-top: 1.7rem; }
.button-outline { background: transparent; color: var(--ink); border-color: #927e8d; }
.button-outline:hover { background: #f4dfeb; border-color: var(--rose); }
.empty { padding: 2rem 0; color: var(--muted); }

.shein { display: flex; justify-content: space-between; align-items: center; gap: 1.4rem; margin-block: clamp(2rem, 6vw, 5rem); padding: clamp(1.5rem, 5vw, 3.8rem); color: var(--paper); background: #41283b; border-radius: 5px; }
.shein h2 { font-size: clamp(2.65rem, 5vw, 4.5rem); }
.shein p { margin-top: .75rem; max-width: 59ch; color: #f0e0e9; }
.shein .button { flex: 0 0 auto; }
.footer { padding: 2rem 0; }
.footer p { margin-top: .5rem; color: #e4d4de; font-size: .83rem; }

dialog { width: min(920px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: 8px; color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #1b121bd9; }
.detail-layout { display: grid; grid-template-columns: 1fr .88fr; }
.detail-gallery .gallery { height: min(70vh, 630px); min-height: 320px; }
.detail-copy { padding: clamp(1.6rem, 4vw, 3.25rem); align-self: center; }
.detail-copy h2 { margin: .55rem 0 .85rem; }
.detail-price { font-size: 1.4rem; font-weight: 700; }
.detail-size, .detail-ref { color: var(--muted); margin-top: .35rem; }
.detail-ref { font-size: .82rem; }
.detail-copy .button { margin-top: 1.2rem; }
.share { display: flex; margin-top: .7rem; border: 0; background: transparent; }
.dialog-close { position: absolute; top: .65rem; right: .65rem; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font: 400 1.7rem/1 var(--body); }
.dialog-close:hover { background: var(--pink); }

@media (max-width: 920px) {
  .wrap { width: calc(100% - 3rem); }
  .hero-media { min-height: 280px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 1.8rem); }
  .header-inner { min-height: 64px; flex-wrap: wrap; gap: .45rem 1rem; padding-top: .7rem; }
  .header nav { order: 3; flex: 0 0 100%; justify-content: space-between; gap: .3rem; padding-block: .48rem .64rem; }
  .header nav a { font-size: .79rem; }
  .header .button { min-height: 38px; padding-block: .5rem; }
  .wordmark { font-size: 2.5rem; }
  .hero { padding-block: 1.8rem .95rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-copy { padding: 0 .24rem; }
  .hero h1 { font-size: clamp(3.7rem, 15vw, 6.5rem); }
  .hero-copy .button { margin-top: 1.2rem; }
  .hero-media { min-height: 0; aspect-ratio: 1.57; }
  .collection-grid, .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .collection-card { min-height: 95px; font-size: .83rem; padding: .55rem .62rem; }
  .catalog-heading { align-items: stretch; flex-direction: column; gap: .85rem; }
  .search { width: 100%; }
  .product-copy { padding: .58rem; }
  .product-title { font-size: 1.48rem; }
  .product-contact { min-height: 37px; padding-inline: .35rem; }
  .shein { flex-direction: column; align-items: start; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-gallery .gallery { height: min(52vh, 480px); min-height: 0; }
  .detail-copy { padding: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
