:root {
  --bg: #f6f3ef;
  --bg-white: #fffcfa;
  --ink: #141210;
  --ink-soft: #5c5652;
  --accent: #8f1d32;
  --accent-soft: #f3e8eb;
  --line: rgba(20, 18, 16, 0.1);
  --font: "Syne", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --ease: cubic-bezier(0.33, 1, 0.38, 1);
  --wrap: min(1280px, 100% - 40px);
  --header: 64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* Loader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-white);
  display: grid;
  place-items: center;
  transition: opacity 0.5s, visibility 0.5s;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  font-style: italic;
  animation: pulse 1s ease-in-out infinite alternate;
}
@keyframes pulse { to { opacity: 0.45; } }

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transition: background 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(255, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  letter-spacing: -0.01em;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.nav a:hover { color: var(--ink); }
.header-end { display: flex; align-items: center; gap: 12px; }
.link-tg { font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); }
.link-tg:hover { color: var(--accent); }
.btn-cart {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg-white);
  border-radius: 100px;
  transition: transform 0.2s var(--ease), background 0.2s;
}
.btn-cart:hover { transform: scale(1.03); background: var(--accent); }
.btn-cart span { opacity: 0.7; margin-left: 4px; }
.burger {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 50%;
  position: relative;
}
.burger::before, .burger::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1px;
  background: var(--ink);
}
.burger::before { top: 17px; }
.burger::after { top: 22px; }

@media (max-width: 768px) {
  .nav, .link-tg { display: none; }
  .burger { display: block; }
}
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  font-family: var(--font-serif);
  font-size: 2rem;
}
.mobile-nav[hidden] { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: transform 0.2s var(--ease), background 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--ink); color: var(--bg-white); }
.btn-dark:hover { background: var(--accent); }
.btn-line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bg-white); }
.btn-block { width: 100%; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: var(--header);
}
.hero-media {
  position: relative;
  background: #ebe6e0;
  overflow: hidden;
}
.hero-slider {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide img {
  transform: scale(1.04);
  transition: transform 8s linear;
}
.hero-slide.active img { transform: scale(1); }
.hero-progress {
  position: absolute;
  bottom: 28px;
  left: 28px;
  right: 28px;
  display: flex;
  gap: 6px;
  z-index: 2;
}
.hero-dot {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.35);
  border-radius: 1px;
  overflow: hidden;
  padding: 0;
}
.hero-dot span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
}
.hero-dot.active span { animation: prog 5s linear forwards; }
@keyframes prog { to { width: 100%; } }

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 6vw, 72px);
  background: var(--bg-white);
}
.tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-copy h1 {
  font-family: var(--font);
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-copy h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-bottom: 32px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-caption {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-soft);
  min-height: 1.4em;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { min-height: 52vh; }
  .hero-copy { padding: 32px 20px 48px; }
}

/* Collections */
.collections { padding: 80px 0; }
.section-label span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-label h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 8px;
}
.collections-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 32px 0 8px;
  margin-top: 28px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.collections-scroll::-webkit-scrollbar { display: none; }
.col-tile {
  flex: 0 0 clamp(200px, 28vw, 280px);
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background: #ddd;
}
.col-tile img { transition: transform 0.5s var(--ease); }
.col-tile:hover img { transform: scale(1.06); }
.col-tile figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
}
.col-tile h3 { font-size: 1.25rem; font-weight: 600; }
.col-tile p { font-size: 0.75rem; opacity: 0.85; margin-top: 4px; }

/* Shop / Catalog bento */
.shop { padding: 40px 0 100px; background: var(--bg-white); }
.shop-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.shop-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.shop-filters::-webkit-scrollbar { display: none; }
.filter-pill {
  flex-shrink: 0;
  padding: 10px 18px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: transparent;
  transition: all 0.2s;
}
.filter-pill:hover { border-color: var(--ink); color: var(--ink); }
.filter-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg-white);
}

.shop-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.p-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  cursor: pointer;
  grid-column: span 3;
  aspect-ratio: 4/5;
}
.p-card--hero {
  grid-column: span 6;
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 420px;
}
.p-card--wide { grid-column: span 6; aspect-ratio: 16/10; }
.p-card--tall { grid-column: span 3; grid-row: span 2; aspect-ratio: auto; min-height: 360px; }

.p-card img {
  transition: transform 0.55s var(--ease);
}
.p-card:hover img { transform: scale(1.05); }
.p-card-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
}
.p-card-info h3 {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}
.p-card--hero .p-card-info h3 { font-size: 1.35rem; }
.p-card-price {
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.p-card-add {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-white);
  color: var(--ink);
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.p-card:hover .p-card-add {
  opacity: 1;
  transform: translateY(0);
}
.p-card-add.added { background: var(--accent); color: #fff; }

@media (max-width: 900px) {
  .p-card, .p-card--tall { grid-column: span 6; aspect-ratio: 3/4; min-height: 0; }
  .p-card--hero, .p-card--wide { grid-column: span 12; min-height: 320px; aspect-ratio: 4/3; }
}
@media (max-width: 520px) {
  .p-card, .p-card--tall, .p-card--hero, .p-card--wide { grid-column: span 12; }
}

.shop-footer { text-align: center; margin-top: 48px; }

/* Strip */
.strip { padding: 48px 0; border-block: 1px solid var(--line); }
.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.strip-grid strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.strip-grid span { font-size: 0.85rem; color: var(--ink-soft); }
@media (max-width: 600px) {
  .strip-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Footer */
.footer { padding: 32px 0; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a:hover { color: var(--ink); }

/* Modal */
.modal, .drawer { position: fixed; inset: 0; z-index: 200; }
.modal[hidden], .drawer[hidden] { display: none; }
.modal-bg, .drawer-bg {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.5);
  backdrop-filter: blur(4px);
}
.modal-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 94vw);
  max-height: 90vh;
  overflow: auto;
  background: var(--bg-white);
  border-radius: 16px;
}
.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  font-size: 1.5rem;
  line-height: 1;
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modal-grid img { aspect-ratio: 1; }
.modal-detail { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.modal-detail h2 { font-size: 1.75rem; font-weight: 600; }
.modal-detail .price { font-size: 1.35rem; color: var(--accent); font-weight: 600; }
@media (max-width: 700px) {
  .modal-grid { grid-template-columns: 1fr; }
}

/* Drawer */
.drawer-box {
  position: absolute;
  top: 0;
  right: 0;
  width: min(380px, 100%);
  height: 100%;
  background: var(--bg-white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.drawer.open .drawer-box { transform: translateX(0); }
.drawer-box header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.drawer-box header h2 { font-size: 1.25rem; font-weight: 600; }
.drawer-empty, #cartContent {
  padding: 20px;
  flex: 1;
  overflow: auto;
}
.drawer-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--ink-soft);
}
#cartList { list-style: none; }
#cartList li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
#cartList img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; }
.drawer-sum {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  font-weight: 600;
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); }
