/* ASH STORE — pastel editorial shell (overrides base styles) */

.theme-ash {
  --ash-pink: #fde4e1;
  --ash-pink-deep: #f5d4cf;
  --ash-tan: #d6b8a3;
  --ash-ink: #1a0f0f;
  --ash-muted: #5c5654;
  --ash-white: #fffefb;
  --font-ash-sans: "DM Sans", system-ui, sans-serif;
  --font-ash-serif: "Fraunces", Georgia, serif;
}

.theme-ash body {
  background: var(--ash-pink);
  color: var(--ash-ink);
}

.theme-ash .grain {
  opacity: 0.018;
}

/* Header — editorial lockup + pill nav + mini image strip */
.site-header--ash.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand center actions";
  align-items: center;
  gap: clamp(0.65rem, 2vw, 1.25rem);
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: none;
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.98) 0%, rgba(253, 244, 238, 0.94) 100%);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(26, 15, 15, 0.06), inset 0 -1px 0 rgba(214, 184, 163, 0.45);
}

.ash-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ash-ink);
  white-space: nowrap;
}

.ash-brand:hover {
  opacity: 0.92;
}

.ash-brand:hover .ash-brand__seal {
  transform: rotate(-6deg) scale(1.02);
}

.ash-brand__seal {
  flex-shrink: 0;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  border: 2px solid var(--ash-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ash-serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(145deg, #fffefb 0%, rgba(214, 184, 163, 0.42) 100%);
  box-shadow: 3px 5px 18px rgba(26, 15, 15, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ash-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.ash-brand__name {
  font-family: var(--font-ash-sans);
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: clamp(0.88rem, 2vw, 1rem);
  text-transform: uppercase;
}

.ash-brand__sub {
  font-family: var(--font-ash-serif);
  font-size: 0.62rem;
  font-style: italic;
  letter-spacing: 0.1em;
  color: var(--ash-muted);
  margin-top: 0.2rem;
}

.ash-header__center {
  grid-area: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  min-width: 0;
  flex-wrap: wrap;
}

.ash-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.15rem clamp(0.2rem, 1vw, 0.45rem);
}

.ash-nav--pill {
  padding: 0.28rem 0.45rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(26, 15, 15, 0.1);
  border-radius: 999px;
  box-shadow: 0 2px 14px rgba(26, 15, 15, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.ash-nav a {
  font-family: var(--font-ash-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash-ink);
  text-decoration: none;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.ash-nav a:hover {
  opacity: 1;
  background: rgba(214, 184, 163, 0.45);
  color: var(--ash-ink);
}

.ash-header__strips {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 1 auto;
  min-width: 0;
}

.ash-header__strip {
  flex: 1 1 20px;
  height: 1px;
  max-width: 48px;
  background: linear-gradient(90deg, transparent, rgba(26, 15, 15, 0.18), transparent);
  opacity: 0.85;
}

.ash-header__strip--end {
  background: linear-gradient(90deg, rgba(26, 15, 15, 0.12), transparent);
  max-width: 36px;
}

.ash-header__strips img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ash-white);
  box-shadow: 0 2px 10px rgba(26, 15, 15, 0.12);
  flex-shrink: 0;
}

@media (max-width: 1180px) {
  .ash-header__strips {
    display: none;
  }
}

.ash-header-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

.ash-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  border: 1px solid rgba(26, 15, 15, 0.1);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ash-ink);
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 2px 10px rgba(26, 15, 15, 0.06);
}

.ash-cart:hover {
  background: rgba(214, 184, 163, 0.35);
  box-shadow: 0 4px 16px rgba(26, 15, 15, 0.08);
}

.ash-cart:active {
  transform: scale(0.96);
}

.ash-cart svg {
  width: 1.28rem;
  height: 1.28rem;
}

.ash-cart__dot {
  position: absolute;
  top: 0.38rem;
  right: 0.38rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e04545;
  border: 2px solid var(--ash-white);
  box-shadow: 0 0 0 1px rgba(224, 69, 69, 0.35);
}

@media (max-width: 900px) {
  .site-header--ash.site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand actions"
      "center center";
    gap: 0.65rem 0.75rem;
  }

  .ash-header__center {
    justify-content: flex-start;
    width: 100%;
  }

  .ash-nav--pill {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    mask-image: linear-gradient(to right, transparent 0, black 10px, black calc(100% - 10px), transparent 100%);
  }

  .ash-nav--pill a {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .site-header--ash.site-header {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .ash-brand__sub {
    display: none;
  }
}

/* Hero — editorial split (image left, copy right), minimal “lookbook” rail */
.hero.hero--ash.hero--codex {
  display: block;
  grid-template-columns: none;
  gap: unset;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  overflow: visible;
  padding: clamp(2.25rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.75rem) clamp(2rem, 4vw, 3rem);
  box-sizing: border-box;
}

.hero--codex {
  background: var(--ash-white);
  border-radius: clamp(16px, 2.5vw, 28px);
  box-shadow:
    0 1px 0 rgba(26, 15, 15, 0.06),
    0 24px 60px rgba(61, 48, 42, 0.08);
  border: 1px solid rgba(26, 15, 15, 0.06);
}

.hero-codex {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.25rem);
}

@media (max-width: 900px) {
  .hero-codex {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2rem);
    padding-bottom: clamp(1.25rem, 3vw, 1.75rem);
  }
}

.hero-codex__visual {
  min-width: 0;
}

.hero-codex__figure {
  margin: 0;
  position: relative;
  padding-bottom: 0.25rem;
}

.hero-codex__frame {
  position: relative;
  border-radius: clamp(14px, 2vw, 22px);
  overflow: hidden;
  transform: rotate(-2.25deg);
  box-shadow:
    12px 28px 48px rgba(26, 15, 15, 0.14),
    0 0 0 1px rgba(26, 15, 15, 0.06);
  background: rgba(214, 184, 163, 0.25);
}

.hero-codex__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  display: block;
  vertical-align: middle;
}

.hero-codex__vol {
  position: absolute;
  bottom: clamp(0.85rem, 2vw, 1.25rem);
  right: clamp(0.85rem, 2vw, 1.25rem);
  margin: 0;
  padding: 0.45rem 0.75rem;
  font-family: "Playfair Display", var(--font-ash-serif);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ash-ink);
  background: rgba(255, 254, 251, 0.94);
  border: 1px solid rgba(26, 15, 15, 0.1);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(26, 15, 15, 0.1);
  transform: rotate(2.25deg);
  pointer-events: none;
}

@media (max-width: 640px) {
  .hero-codex__frame {
    transform: none;
  }

  .hero-codex__vol {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-codex__frame,
  .hero-codex__vol {
    transform: none;
  }
}

.hero-codex__copy {
  padding: clamp(0.25rem, 1vw, 0.5rem) 0;
  min-width: 0;
}

.hero-codex__eyebrow {
  margin: 0 0 1rem;
  font-family: var(--font-ash-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9a7b63;
}

.hero-codex__title {
  margin: 0 0 1.1rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.15rem, 4.8vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ash-ink);
}

.hero-codex__title em {
  font-style: italic;
  font-weight: 600;
  color: #a67c52;
}

.hero-codex__lede {
  margin: 0 0 1.75rem;
  font-family: var(--font-ash-sans);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--ash-muted);
  max-width: 38ch;
}

.hero-codex__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.hero-codex__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.72rem 1.5rem;
  font-family: var(--font-ash-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.hero-codex__btn--primary {
  color: var(--ash-white);
  background: linear-gradient(145deg, #8b5a3c 0%, #6b3f28 100%);
  border: 1px solid rgba(26, 15, 15, 0.12);
  box-shadow: 0 8px 26px rgba(107, 63, 40, 0.35);
}

.hero-codex__btn--primary:hover {
  color: var(--ash-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(107, 63, 40, 0.4);
}

.hero-codex__btn--ghost {
  color: var(--ash-ink);
  background: transparent;
  border: 1px solid rgba(26, 15, 15, 0.18);
  box-shadow: none;
}

.hero-codex__btn--ghost:hover {
  border-color: #a67c52;
  color: #6b3f28;
}

.hero-codex__btn:active {
  transform: translateY(0);
}

.hero-codex__show {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin: clamp(1rem, 2.5vw, 1.5rem) clamp(1.25rem, 4vw, 3rem) clamp(1.25rem, 3vw, 1.75rem);
  padding: 0.75rem 1rem;
  background: rgba(214, 184, 163, 0.18);
  border: 1px solid rgba(26, 15, 15, 0.07);
  border-radius: 999px;
  max-width: min(100%, 42rem);
}

.hero-codex__show-label {
  margin: 0;
  font-family: var(--font-ash-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(92, 86, 84, 0.75);
}

.hero-codex__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.hero-codex__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.4rem 1rem;
  font-family: var(--font-ash-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--ash-ink);
  border-radius: 999px;
  border: 1px solid rgba(26, 15, 15, 0.14);
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-codex__chip:hover {
  border-color: rgba(166, 124, 82, 0.55);
  color: #5c3d28;
}

.hero-codex__chip--active {
  background: rgba(214, 184, 163, 0.42);
  border-color: rgba(166, 124, 82, 0.65);
  color: var(--ash-ink);
}

@media (max-width: 640px) {
  .hero-codex__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-codex__btn {
    width: 100%;
    justify-content: center;
  }

  .hero-codex__show {
    border-radius: 18px;
    margin-left: clamp(1rem, 4vw, 2.75rem);
    margin-right: clamp(1rem, 4vw, 2.75rem);
  }

  .hero-codex__lede {
    max-width: none;
  }
}

/* Dot patterns (CSS) */
.ash-deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  background-image: radial-gradient(circle, rgba(26, 15, 15, 0.2) 1.5px, transparent 1.5px);
  background-size: 10px 10px;
  border-radius: 4px;
}

.ash-deco--tl {
  width: 72px;
  height: 100px;
  top: 8%;
  left: 3%;
}

.ash-deco--img {
  width: 56px;
  height: 80px;
  left: -8%;
  top: 18%;
  opacity: 0.9;
}

.ash-deco--br {
  width: 90px;
  height: 110px;
  bottom: 6%;
  right: 4%;
}

@media (max-width: 900px) {
  .ash-deco--tl,
  .ash-deco--br {
    opacity: 0.5;
  }

  .ash-deco--img {
    left: 0;
  }
}

/* Wavy lines bottom-left */
.ash-deco--waves {
  left: -5%;
  bottom: -2%;
  width: min(55vw, 320px);
  height: 140px;
  background: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 120' fill='none'%3E%3Cpath d='M0 80 Q 80 40 160 70 T 320 60 T 400 90' stroke='%23e8b8b0' stroke-width='3' opacity='.55'/%3E%3Cpath d='M0 100 Q 100 50 200 85 T 400 70' stroke='%23f0c4bc' stroke-width='2' opacity='.45'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.85;
}

/* Section surfaces on pink */
.theme-ash .collection,
.theme-ash .page-hero,
.theme-ash .filters,
.theme-ash .quote-block,
.theme-ash .page-info,
.theme-ash .timing-block,
.theme-ash .contact,
.theme-ash .pantry-block,
.theme-ash .about {
  background: transparent;
}

.theme-ash .tips__inner,
.theme-ash .pantry__card,
.theme-ash .faq__item,
.theme-ash .timing__table,
.theme-ash .mini-card,
.theme-ash .contact__details {
  background: var(--ash-white);
  border-color: rgba(26, 15, 15, 0.08);
}

.theme-ash .site-footer {
  background: rgba(255, 254, 251, 0.85);
  border-top-color: rgba(26, 15, 15, 0.08);
}

.theme-ash .site-toast {
  background: var(--ash-ink);
  color: var(--ash-white);
}

.theme-ash .page-mens {
  background: linear-gradient(
    180deg,
    rgba(61, 79, 82, 0.05) 0%,
    var(--ash-pink) 32%,
    var(--ash-pink) 100%
  );
}

.theme-ash .page-womens {
  background: linear-gradient(
    180deg,
    rgba(157, 107, 116, 0.06) 0%,
    var(--ash-pink) 36%,
    var(--ash-pink) 100%
  );
}

.theme-ash .page-hero--mens {
  background: linear-gradient(165deg, rgba(61, 79, 82, 0.08) 0%, var(--ash-pink) 55%);
}

.theme-ash .page-hero--womens {
  background: linear-gradient(195deg, rgba(157, 107, 116, 0.09) 0%, var(--ash-pink) 55%);
}

.theme-ash .product-card {
  background: var(--ash-white);
}

.theme-ash .btn--primary {
  background: var(--ash-ink);
  color: var(--ash-white);
  box-shadow: 0 8px 24px rgba(26, 15, 15, 0.2);
}

.theme-ash .btn--primary:hover {
  box-shadow: 0 12px 32px rgba(26, 15, 15, 0.28);
}

/* Kids lane */
.page-kids {
  --lane: #6b8f9e;
  --lane-soft: rgba(107, 143, 158, 0.14);
  background: linear-gradient(180deg, rgba(107, 143, 158, 0.06) 0%, var(--ash-pink) 40%);
  border-top: 1px solid rgba(107, 143, 158, 0.15);
}

.page-kids .page-hero {
  background: linear-gradient(165deg, rgba(107, 143, 158, 0.1) 0%, var(--ash-pink) 55%);
  border-bottom-color: rgba(107, 143, 158, 0.2);
}

.page-hero--kids .page-hero__frame {
  transform: rotate(-1deg);
  border-radius: 18px;
  border-color: rgba(107, 143, 158, 0.35);
  box-shadow: 8px 18px 40px rgba(107, 143, 158, 0.14);
}

.page-kids .filters__inner {
  border-left: 3px solid var(--lane);
  padding-left: 1.35rem;
}

.page-kids .chip:hover {
  border-color: var(--lane);
}

.page-kids .eyebrow {
  color: #4a6a78;
}

.page-kids .chip--active {
  background: var(--lane-soft);
  border-color: var(--lane);
}

.page-kids .product-price {
  color: #3d5c6b;
}

.page-kids .product-card {
  border-radius: 16px;
  border-color: rgba(107, 143, 158, 0.22);
}

.skip-link:focus {
  background: var(--ash-ink);
  color: var(--ash-white);
}

/* New arrivals row — compact cards + Order now (same as catalog) */
.theme-ash .collection--new {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
  background: radial-gradient(ellipse 100% 75% at 50% 0%, rgba(255, 255, 255, 0.55) 0%, transparent 58%);
}

.grid--new-arrivals {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .grid--new-arrivals {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  }
}

.collection--new .product-card--new-arrival .product-card__media {
  aspect-ratio: 280 / 340;
}

.collection--new .product-card--new-arrival .product-name {
  font-size: 1.05rem;
}

