/* The Shop: generated pages under /shop, on top of styles.css. */
.shop-page {
  --ink-soft: #4a4a4a;
  --card-line: rgba(10, 10, 10, 0.07);
  --nav-h: 76px;
}

/* --- The Shop header --- */
.shop-head { text-align: center; padding: 40px 24px 28px; }
.shop-mark {
  width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--black); display: flex; align-items: center; justify-content: center;
}
.shop-mark span {
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 700; font-size: 54px; line-height: 1; color: #fff;
  text-shadow: -2.5px 0 var(--accent-2), 2.5px 0 var(--accent-3);
}
.shop-head h1 {
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400; font-size: 40px;
  letter-spacing: -0.01em; color: var(--ink-soft);
}
.shop-sub {
  margin-top: 14px; font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}

/* --- Category tabs --- */
.shop-tabs {
  position: sticky; top: var(--nav-h); z-index: 30;
  background: rgba(250, 250, 247, 0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.shop-tabs-inner {
  max-width: 1240px; margin: 0 auto; padding: 12px 40px;
  display: flex; align-items: center; justify-content: safe center; gap: 8px; overflow-x: auto; scrollbar-width: none;
  --fade: 88px;
}
/* shop.js marks the edges that have more to scroll; the fade says "there's more this way". */
.shop-tabs-inner[data-more="end"] {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - var(--fade)), transparent);
}
.shop-tabs-inner[data-more="start"] {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade));
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade));
}
.shop-tabs-inner[data-more="both"] {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade), #000 calc(100% - var(--fade)), transparent);
}
.shop-tabs-inner::-webkit-scrollbar { display: none; }
.shop-tabs button {
  flex: none; font: inherit; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 18px;
  padding: 6px 16px; border-radius: 999px; border: 1px solid transparent;
  background: none; color: var(--ink-soft); cursor: pointer;
}
.shop-tabs button[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); }
.shop-tabs .count {
  margin-left: 6px; font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-size: 11px;
  color: var(--ink-soft); vertical-align: 2px;
}
/* The page's own brand or category: filled, so it reads as where you are; × goes back to the directory. */
.shop-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 18px;
  padding: 6px 14px 6px 16px; border-radius: 999px; margin-right: 8px;
  background: var(--ink); color: var(--white); text-decoration: none;
}
.shop-chip span { font-family: 'Geist', 'Geist Fallback', sans-serif; font-size: 15px; opacity: 0.7; }
.shop-chip:hover span { opacity: 1; }
.shop-chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.shop-tabs button:hover { color: var(--ink); }
.shop-tabs button:focus-visible, .card:focus-visible, .shop-cta a:focus-visible,
.pdp a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* --- Feed of cards --- */
.shop-wide { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.shop-feed {
  list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px; padding-top: 36px;
}
.shop-feed li[hidden] { display: none; }
.card {
  height: 100%; display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 0 1px var(--card-line); transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: 0 0 0 1px rgba(10, 10, 10, 0.14), 0 6px 18px rgba(10, 10, 10, 0.06); }
.card-img { position: relative; aspect-ratio: 4 / 5; background: #fff; }
.card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 10%; transition: transform 0.35s ease;
}
.card-img.cover img { object-fit: cover; padding: 0; }
.card:hover .card-img img { transform: scale(1.03); }
.card-text {
  flex: 1; padding: 12px 14px 16px; text-align: center;
  border-top: 1px solid rgba(10, 10, 10, 0.05); display: flex; flex-direction: column; gap: 4px;
}
.card-brand {
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.card-name {
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 500; font-size: 21px;
  line-height: 1.15; letter-spacing: -0.005em;
}

/* --- Ways to shop --- */
.shop-cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  max-width: 520px; margin: 72px auto 96px;
}
.shop-cta a {
  display: flex; align-items: center; justify-content: center; padding: 13px 20px;
  border: 1px solid var(--ink); border-radius: 999px; text-decoration: none;
  font-size: 14px; color: var(--ink); transition: background 0.2s, color 0.2s;
}
.shop-cta a:hover { background: var(--ink); color: #fff; }

/* --- Product page --- */
.pdp {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h)); border-bottom: 1px solid var(--line);
}
.pdp-info { display: flex; align-items: center; justify-content: center; padding: 48px 64px; }
.pdp-inner { width: 100%; max-width: 440px; }
.pdp-back {
  display: inline-block; margin-bottom: 40px; font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.pdp-meta { font-size: 13px; color: var(--ink-soft); }
.pdp-meta a { color: var(--ink-soft); text-decoration: none; }
.pdp-meta a:hover { text-decoration: underline; }
.pdp-disc { font-style: italic; }
.pdp-title {
  margin-top: 10px; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400;
  font-size: 46px; line-height: 1.05; letter-spacing: -0.015em;
}
.pdp-by { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.pdp-dot {
  width: 20px; height: 20px; border-radius: 50%; background: var(--black); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 700; font-size: 13px;
}
.pdp-note { margin-top: 40px; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: 23px; line-height: 1.35; }
.pdp-buy {
  display: block; margin-top: 48px; padding: 15px 24px; border-radius: 999px;
  background: var(--black); color: #fff; text-align: center; text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.pdp-buy:hover { background: var(--accent); }
.pdp-other { margin-top: 24px; }
.pdp-other h2 {
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace; font-weight: 400; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft);
}
.pdp-other ul { list-style: none; margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.pdp-other a {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 13px; color: var(--ink); text-decoration: none;
}
.pdp-other a:hover { border-color: var(--ink); }
.pdp-more-link {
  display: block; margin-top: 16px; text-align: center; font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--ink);
}
.pdp-panel {
  background: #fff; display: flex; align-items: center; justify-content: center;
  padding: 48px; border-left: 1px solid var(--line);
}
.pdp-photo { position: relative; width: 100%; max-width: 520px; aspect-ratio: 4 / 5; }
.pdp-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.pdp-photo.cover img { object-fit: cover; }
.more { padding-top: 72px; padding-bottom: 96px; }
.more h2 { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400; font-size: 32px; text-align: center; }
.more .shop-feed { padding-top: 28px; }

/* --- Shop by Brand and Shop by Category --- */
.dir-head { text-align: center; padding: 56px 0 8px; }
.dir-head h1 {
  font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400; font-size: 56px;
  line-height: 1.05; letter-spacing: -0.015em;
}
.dir-head .kicker {
  display: block; margin-bottom: 6px; font-style: italic; font-size: 22px;
  letter-spacing: 0; color: var(--ink-soft);
}
.shop-wide + .shop-tabs { margin-top: 28px; }
.mosaic {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr; grid-auto-flow: dense; gap: 10px; padding-top: 28px;
}
.mosaic > .tile { aspect-ratio: 1 / 1; }
.mosaic > .big { grid-column: span 2; grid-row: span 2; }
.mosaic > .wide { grid-column: span 2; aspect-ratio: auto; }
.tile {
  position: relative; overflow: hidden; border-radius: 4px; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 9%; color: var(--ink);
}
.tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.tile-photo, .tile-photo picture { position: absolute; inset: 0; }
.tile-photo img { position: absolute; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.35s ease; }
.tile:hover .tile-photo img { transform: scale(1.03); }
.tile-name { position: relative; z-index: 1; text-align: center; padding: 0 12px; }

/* Brands: a photo on a person with the name over it, or the product with the name below. */
.tile.brand { background: #e9e5dd; }
.tile.brand .tile-photo img { top: 8%; left: 15%; width: 70%; height: 58%; }
.tile.brand .tile-name {
  font-weight: 600; font-size: clamp(13px, 1.4vw, 18px); letter-spacing: 0.32em;
  padding-left: calc(12px + 0.32em); text-transform: uppercase; line-height: 1.35;
}
.tile.brand:has(.cover) { justify-content: center; padding-bottom: 0; color: #fff; }
.tile.brand:has(.cover)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35)); }
.tile.brand .cover img { inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.tile.brand:has(.cover) .tile-name { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3); }
.tile.brand.big .tile-name { font-size: clamp(18px, 2.6vw, 34px); }

/* Categories: the product alone on light gray. */
.tile.category { background: #f5f5f3; padding-bottom: 18px; }
.tile.category .tile-photo img { top: 10%; left: 14%; width: 72%; height: 62%; }
.tile.category .cover img { top: 0; left: 0; width: 100%; height: 76%; object-fit: cover; mix-blend-mode: normal; }
.tile.category .tile-name { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-size: clamp(20px, 2vw, 30px); }
.tile.category.big .tile-name { font-size: clamp(30px, 3.4vw, 52px); }
.tile.category.big .tile-photo img { top: 12%; height: 66%; }

/* --- Disclosure --- */
.prose { max-width: 680px; margin: 0 auto; padding: 72px 24px 112px; }
.prose h1 { font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400; font-size: 56px; letter-spacing: -0.015em; margin-bottom: 12px; }
.prose p { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.prose a { color: var(--ink); }

@media (max-width: 1000px) {
  .shop-feed { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shop-page { --nav-h: 69px; }
}
@media (max-width: 860px) {
  .pdp { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .pdp-panel { order: -1; border-left: 0; border-bottom: 1px solid var(--line); padding: 24px; }
  .pdp-photo { max-width: 420px; }
  .pdp-info { padding: 28px 16px 40px; }
  .pdp-back { margin-bottom: 20px; }
  .pdp-title { font-size: 36px; }
  .pdp-note { margin-top: 24px; font-size: 20px; }
  .pdp-buy { margin-top: 28px; }
}
@media (max-width: 720px) {
  .shop-wide, .shop-tabs-inner { padding-left: 16px; padding-right: 16px; }
  .shop-tabs-inner { justify-content: flex-start; }
  .shop-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card-name { font-size: 17px; }
  .card-text { padding: 10px 10px 14px; }
  .shop-cta { margin: 56px auto 72px; }
  .dir-head h1, .prose h1 { font-size: 40px; }
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile.brand .tile-name { font-size: 12px; letter-spacing: 0.24em; }
}
@media (prefers-reduced-motion: reduce) {
  .card-img img, .card, .shop-cta a, .tile-photo img { transition: none; }
}

/* --- Homepage carousels: The Shop, Shop by Brand, Shop by Category --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hs {
  --ink-soft: #4a4a4a;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start;
  max-width: 1440px; margin: 0 auto; padding: 96px 0 96px 40px;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.hs-left { max-width: 520px; width: 100%; margin-left: auto; padding-top: 24px; }
.hs-dots { display: flex; gap: 16px; margin: 0 0 34px 8px; }
.hs-dots button {
  position: relative; width: 24px; height: 24px; margin: -8px; padding: 0;
  border: 0; background: none; cursor: pointer;
}
.hs-dots button::before {
  content: ''; position: absolute; inset: 0; margin: auto;
  width: 7px; height: 7px; border-radius: 50%; background: #d6d3cc;
}
.hs-dots button[aria-current="true"]::before { background: var(--ink); }
.hs-dots button:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.hs-k { display: flex; align-items: center; gap: 16px; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-style: italic; font-size: 22px; }
.hs-k::after { content: ''; flex: 1; height: 1px; background: var(--line); }
/* The huge word is decoration: drawn by CSS, so it isn't read or checked as page text. */
.hs-word::before { content: attr(data-word); }
.hs-word {
  margin-top: -4px; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400;
  font-size: clamp(72px, 9vw, 140px); line-height: 0.9; letter-spacing: -0.03em; color: #e2ded6;
}
.hs-slides { list-style: none; }
.hs-title {
  margin-top: 18px; font-family: 'Cormorant Garamond', 'Cormorant Garamond Fallback', serif; font-weight: 400;
  font-size: clamp(34px, 3.6vw, 54px); line-height: 1.02; letter-spacing: -0.015em;
}
.hs-desc { margin-top: 14px; max-width: 46ch; min-height: 3.2em; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.hs-actions { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hs-actions .btn { background: var(--black); color: #fff; text-decoration: none; border-radius: 4px; padding: 13px 22px; font-size: 13px; }
.hs-actions .btn:hover { background: var(--accent); }
.hs-actions .lnk { font-size: 13px; color: var(--ink); }
.hs-actions a:focus-visible, .hs-arrows button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.hs-right { min-width: 0; }
.hs-tiles { display: flex; align-items: flex-start; gap: 14px; }
.hs-tile {
  position: relative; flex: none; overflow: hidden; background: #fff; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
.hs-tile[hidden] { display: none; }
.hs-tile[data-pos="0"] { order: 0; width: min(400px, 46%); aspect-ratio: 4 / 5; }
.hs-tile[data-pos="1"] { order: 1; }
.hs-tile[data-pos="2"] { order: 2; }
.hs-tile[data-pos="1"], .hs-tile[data-pos="2"] { width: clamp(150px, 15vw, 230px); aspect-ratio: 3 / 4; margin-top: 13%; }
.hs-tile picture { position: absolute; inset: 0; }
.hs-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10%; }
.hs-tile.grey { background: #f4f4f2; }
.hs-tile.grey img { mix-blend-mode: multiply; }
.hs-tile.cover img { object-fit: cover; padding: 0; }
.hs-tile.cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.28)); }
.hs-tile.plain img { padding: 10% 12% 24%; }
.hs-tile .word {
  position: relative; z-index: 1; width: 84%; padding-left: 0.32em; text-align: center; line-height: 1.35;
  color: #fff; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; font-size: clamp(13px, 1.4vw, 20px);
  overflow-wrap: anywhere; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}
.hs-tile[data-pos="1"] .word, .hs-tile[data-pos="2"] .word { font-size: 12px; letter-spacing: 0.2em; padding-left: 0.2em; overflow-wrap: normal; }
.hs-tile.plain .word { position: absolute; bottom: 8%; left: 8%; right: 8%; width: auto; color: var(--ink); text-shadow: none; }
.hs-arrows { display: flex; gap: 10px; margin-top: 16px; margin-left: calc(min(400px, 46%) + 14px); }
.hs-arrows button {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--ink); font-size: 16px; cursor: pointer;
}
.hs-arrows button:hover { border-color: var(--ink); }
@media (max-width: 900px) {
  .hs { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 64px 0 64px 16px; }
  .hs-left { margin: 0; padding-right: 16px; }
  .hs-tile[data-pos="0"] { width: 62%; }
  .hs-tile[data-pos="1"], .hs-tile[data-pos="2"] { width: 44vw; }
  .hs-arrows { margin-left: 0; }
}
