/* ==========================================================================
   Eman Fragrance — Inspired List page (/inspired-list/)
   Dark luxury chrome around the site's own React product cards.

   The page is fully hard-coded (page-inspired-list.php); this sheet styles
   the hero, the gender tab pills, the grid, the "View more" loader and the
   disclaimer note. Tokens are lifted from the retired inspired-by.css so
   the redesign keeps the same feel: near-black ink, gold hairlines, cream
   display type.
   ========================================================================== */

.eman-il-page {
  --il-gold: #c9a45c;
  --il-gold-light: #e1c27d;
  --il-gold-deep: #7a5c22;
  --il-cream: #f4ebdd;
  --il-muted: #b9aea3;
  --il-ink: #0b0908;
  --il-panel: #131010;
  --il-hairline: rgba(244, 235, 221, 0.1);

  position: relative;
  background-color: var(--il-ink);
  color: var(--il-cream);
  overflow: hidden;
  padding-bottom: 96px;
}

.eman-il-page *,
.eman-il-page *::before,
.eman-il-page *::after {
  box-sizing: border-box;
}

.eman-il-page a {
  color: inherit;
}

.eman-il-page .eman-il-visually-hidden,
.eman-il-page .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.eman-il-hero {
  position: relative;
  background:
    radial-gradient(1100px 480px at 78% 0%, rgba(201, 164, 92, 0.13), transparent 62%),
    #0a0807;
  isolation: isolate;
}

.eman-il-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  opacity: 0.5;
  pointer-events: none;
}

.eman-il-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 8, 7, 0.62) 0%, rgba(10, 8, 7, 0.3) 42%, rgba(10, 8, 7, 0.88) 100%);
  pointer-events: none;
}

.eman-il-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    repeating-linear-gradient(90deg, rgba(244, 235, 221, 0.045) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(244, 235, 221, 0.045) 0 1px, transparent 1px 96px);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 100%);
  pointer-events: none;
}

.eman-il-hero-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(430px, 62vh, 620px);
  padding-top: clamp(140px, 18vh, 200px);
  padding-bottom: clamp(48px, 7vw, 84px);
}

.eman-il-eyebrow {
  display: block;
  color: var(--il-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.eman-il-title {
  margin: 18px 0 0;
  max-width: 14ch;
  color: var(--il-cream);
  font-size: clamp(40px, 7.4vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.eman-il-title em {
  color: var(--il-gold-light);
  font-style: italic;
  font-weight: 400;
}

.eman-il-lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--il-muted);
  font-size: 14px;
  line-height: 1.9;
}

.eman-il-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  color: var(--il-gold);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
}

.eman-il-meta i {
  display: block;
  width: 46px;
  height: 1px;
  background: linear-gradient(to right, var(--il-gold), transparent);
}

.eman-il-watermark {
  position: absolute;
  right: -0.06em;
  bottom: -0.16em;
  z-index: 0;
  color: rgba(244, 235, 221, 0.035);
  font-size: clamp(150px, 26vw, 340px);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  pointer-events: none;
  user-select: none;
}

/* ── Toolbar (gender tab pills) ─────────────────────────────────────────── */

.eman-il-index {
  padding-top: clamp(40px, 6vw, 72px);
}

/* Size tabs that drive the existing product-card grid (see size-gallery.js) —
   they live in the toolbar's top row alongside the "Available in" lead. */
.eman-il-size-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.eman-il-size-tabs .eman-sg-tabs-lead {
  color: #8a6a24;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3.4px;
  text-transform: uppercase;
}

.eman-il-size-tabs .eman-sg-tabs {
  margin: 0;
  gap: 10px;
}

.eman-il-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 18px 24px;
  padding: 24px;
  border: 1px solid #e4d8c6;
  border-radius: 20px;
  background: #fbf8f2;
  color: #34291d;
}

/* Prominent "Available in …" subheading spanning the top of the toolbar. */
.eman-il-sizes {
  grid-column: 1 / -1;
  padding-bottom: 18px;
  border-bottom: 1px solid #e4d8c6;
}

.eman-il-sizes .eman-size-pills {
  margin: 0;
  gap: 10px;
}

.eman-il-sizes .eman-size-pills-lead {
  color: #8a6a24;
  letter-spacing: 3.4px;
}

/* Same subheading in the dark hero — bigger, with room to breathe. */
.eman-il-hero-sizes {
  margin-top: 26px;
}

.eman-il-hero-sizes .eman-size-pills {
  margin: 0;
  gap: 10px;
}

.eman-il-hero-sizes .eman-size-pills-lead {
  margin-right: 6px;
  letter-spacing: 3.4px;
}

.eman-il-hero-sizes .eman-size-pill {
  min-height: 34px;
  padding: 8px 20px;
  font-size: 12px;
  letter-spacing: 1px;
  backdrop-filter: blur(6px);
}

.eman-il-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.eman-il-tabs .eman-il-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #d8c7ad;
  border-radius: 999px;
  background: #ffffff;
  color: #4a3c2e;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* Gender accent dot keeps the pills consistent with the product cards. */
.eman-il-tabs .eman-il-tab::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
}

.eman-il-tabs .eman-il-tab--all::before {
  background: #8a6a24;
}

.eman-il-tabs .eman-il-tab--men::before {
  background: #5b6c8a;
}

.eman-il-tabs .eman-il-tab--women::before {
  background: #a8607f;
}

.eman-il-tabs .eman-il-tab--unisex::before {
  background: #5f8a6c;
}

.eman-il-tabs .eman-il-tab:hover {
  border-color: #7a5c22;
  background: #f2e9d9;
  color: #5b4218;
  transform: translateY(-1px);
}

.eman-il-tabs .eman-il-tab.is-active {
  background: linear-gradient(135deg, #8a6a24, #6b4f18);
  border-color: #6b4f18;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(107, 79, 24, 0.28);
}

.eman-il-tabs .eman-il-tab.is-active::before {
  background: #ffffff;
  opacity: 1;
}

.eman-il-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #eee5d7;
  color: #5b4218;
  font-size: 10.5px;
  line-height: 14px;
  letter-spacing: 0;
}

.eman-il-tab.is-active .eman-il-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* ── Toolbar: search + AI suggestor row ─────────────────────────────────── */

.eman-il-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.eman-il-field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.eman-il-search,
.eman-il-suggest {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  border: 1px solid #d8c7ad;
  border-radius: 999px;
  background: #ffffff;
  padding: 4px 5px 4px 16px;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.eman-il-search:focus-within,
.eman-il-search:hover,
.eman-il-suggest:focus-within,
.eman-il-suggest:hover {
  border-color: #7a5c22;
  background: #ffffff;
}

.eman-il-search:focus-within,
.eman-il-suggest:focus-within {
  box-shadow: 0 0 0 3px rgba(122, 92, 34, 0.16);
}

.eman-il-tab:focus-visible,
.eman-il-search-btn:focus-visible,
.eman-il-suggest-btn:focus-visible {
  outline: 2px solid #7a5c22;
  outline-offset: 3px;
}

.eman-il-search input,
.eman-il-suggest input {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 1 1 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #34291d;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.4px;
}

.eman-il-search input::placeholder,
.eman-il-suggest input::placeholder {
  color: #746655;
  opacity: 1;
}

.eman-il-search-btn,
.eman-il-suggest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 12px;
  border: 0;
  border-radius: 999px;
  background: #7a5c22;
  color: #ffffff;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.eman-il-search-btn:hover,
.eman-il-suggest-btn:hover {
  background: #5b4218;
}

.eman-il-suggest-btn.is-loading {
  opacity: 0.65;
  cursor: wait;
}

.eman-il-suggest-btn svg {
  flex: 0 0 auto;
}

.eman-il-tools-status {
  grid-column: 1 / -1;
  min-height: 14px;
  margin: 4px 2px 0;
  color: #5b4218;
  font-size: 12px;
  letter-spacing: 0.4px;
  line-height: 1.6;
}

.eman-il-tools-status:empty {
  display: none;
}

/* ── Result counter ─────────────────────────────────────────────────────── */

.eman-il-shown {
  margin: 30px 0 14px;
  color: var(--il-muted);
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

/* ── Grid ───────────────────────────────────────────────────────────────── */

.eman-il-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 22px;
  align-items: stretch;
}

.eman-il-grid .eman-react-product-card-mount {
  display: flex;
  height: 100%;
}

.eman-il-grid .eman-product-card-wrap {
  display: flex;
  height: 100%;
}

.eman-il-grid .eman-product-card--list {
  flex: 1;
  width: auto;
}

/* ── Card identity block ─────────────────────────────────────────────────
   Reads: photo → our name + price → hairline → "Inspired by" pill → sizes.
   The name is deliberately the loudest element; the attribution is a quiet
   gold-tinted caption so it never outranks it. */

.eman-il-grid .eman-product-card > .eman-card-top-bar { order: 1; }
.eman-il-grid .eman-product-card > .eman-card-image-area { order: 2; }
.eman-il-grid .eman-product-card > .eman-card-bottom-row { order: 3; }
.eman-il-grid .eman-product-card > .eman-card-inspired { order: 4; }
.eman-il-grid .eman-product-card > .eman-card-variations { order: 5; }

.eman-il-grid .eman-card-bottom-row {
  align-items: center;
  gap: 12px;
  margin-bottom: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(36, 26, 16, 0.12);
}

.eman-il-grid .eman-card-title {
  color: var(--il-gold-deep);
  font-size: 15px;
  line-height: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.eman-il-grid .eman-card-title-link:hover .eman-card-title {
  color: #4f3712;
}

.eman-il-grid .eman-card-price {
  background: var(--il-gold);
  color: #1b140b;
  font-weight: 700;
  box-shadow: none;
}

.eman-il-grid .eman-card-inspired {
  border-top: 0;
  padding: 0;
  margin-bottom: 13px;
  gap: 8px;
  align-items: center;
}

.eman-il-grid .eman-card-inspired-label {
  background: rgba(122, 92, 34, 0.12);
  color: var(--il-gold-deep);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 9px;
  border-radius: 999px;
}

.eman-il-grid .eman-card-inspired-value {
  color: rgba(36, 26, 16, 0.72);
  font-size: 12px;
  font-weight: 500;
}

.eman-il-grid .eman-product-card:hover {
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.45);
}

/* No-JS fallback: a simple linked thumbnail list. */
.eman-il-grid noscript a {
  display: block;
  padding-bottom: 14px;
  border-radius: 22px;
  overflow: hidden;
  background: #d6cfc6;
  color: #241a10;
  text-align: center;
  text-decoration: none;
}

.eman-il-grid noscript img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.eman-il-grid noscript span {
  display: block;
  margin-top: 10px;
  padding: 0 10px;
  font-size: 10.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Empty state ────────────────────────────────────────────────────────── */

.eman-il-empty {
  padding: 70px 0 40px;
  text-align: center;
  color: var(--il-muted);
  font-size: 14px;
  line-height: 2;
}

/* ── View more ──────────────────────────────────────────────────────────── */

.eman-il-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 46px;
}

.eman-il-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 34px;
  border: 1px solid var(--il-gold);
  border-radius: 999px;
  background: var(--il-gold);
  color: #1b140b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}

.eman-il-more svg {
  transition: transform 0.3s ease;
}

.eman-il-more:hover {
  gap: 16px;
  background: var(--il-gold-light);
  border-color: var(--il-gold-light);
  color: #1b140b;
}

.eman-il-more:hover svg {
  transform: translateX(3px);
}

.eman-il-more.is-loading {
  pointer-events: none;
  opacity: 0.65;
}

.eman-il-more-status {
  min-height: 16px;
  color: var(--il-muted);
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

/* ── Disclaimer note ────────────────────────────────────────────────────── */

.eman-il-note {
  max-width: 740px;
  margin: 56px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--il-hairline);
  color: rgba(185, 174, 163, 0.8);
  font-size: 11.5px;
  line-height: 1.95;
  text-align: center;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .eman-il-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .eman-il-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .eman-il-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px;
  }

  .eman-il-toolbar {
    padding: 18px;
  }

  .eman-il-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .eman-il-tools {
    grid-template-columns: minmax(0, 1fr);
  }

  .eman-il-search,
  .eman-il-suggest {
    width: 100%;
  }

  .eman-il-search input,
  .eman-il-suggest input {
    width: 100%;
    max-width: none;
    flex: 1 1 auto;
  }

  .eman-il-search-btn,
  .eman-il-suggest-btn {
    flex: 0 0 auto;
  }
}

@media (max-width: 600px) {
  .eman-il-toolbar {
    padding: 14px;
    gap: 16px;
    border-radius: 16px;
  }

  .eman-il-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eman-il-tabs .eman-il-tab {
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 13px;
    letter-spacing: 0;
  }

  .eman-il-tab-count {
    font-size: 12px;
    min-width: 28px;
    padding: 4px 7px;
  }

  .eman-il-tools {
    gap: 18px;
  }

  .eman-il-search,
  .eman-il-suggest {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .eman-il-search:hover,
  .eman-il-suggest:hover,
  .eman-il-search:focus-within,
  .eman-il-suggest:focus-within {
    background: transparent;
    box-shadow: none;
  }

  .eman-il-field-label {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    color: #4a3c2e;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
  }

  .eman-il-search input,
  .eman-il-suggest input {
    font-size: 16px;
    letter-spacing: 0;
    min-height: 48px;
    padding: 12px;
    border: 1px solid #d8c7ad;
    border-radius: 12px;
    background: #ffffff;
  }

  .eman-il-suggest {
    grid-template-columns: minmax(0, 1fr);
  }

  .eman-il-search input:focus,
  .eman-il-suggest input:focus {
    border-color: #7a5c22;
    box-shadow: 0 0 0 3px rgba(122, 92, 34, 0.16);
  }

  .eman-il-search-btn {
    width: 48px;
    min-height: 48px;
    padding: 0;
    border-radius: 12px;
  }

  .eman-il-suggest-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .eman-il-hero-inner {
    min-height: 400px;
    padding-top: 130px;
  }

  .eman-il-title {
    max-width: 100%;
    font-size: clamp(34px, 11vw, 52px);
  }

  .eman-il-meta {
    letter-spacing: 2px;
  }

  .eman-il-more {
    width: 100%;
    justify-content: center;
  }

  .eman-il-note {
    text-align: left;
  }
}
