/* Premium storefront layer. Homepage-specific rules stay scoped to body.is-home. */
.site-header {
  border-bottom-color: rgba(194, 164, 94, 0.3);
  background: #050505;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

@media (min-width: 1366px) {
  body.is-home .header-search {
    width: 100%;
    max-width: 900px;
  }
}

.header-search {
  padding: 0.34rem;
  border-color: rgba(194, 164, 94, 0.34);
  border-radius: 12px;
  background: #0b0d0f;
}

.header-search:focus-within {
  border-color: rgba(194, 164, 94, 0.78);
  box-shadow: 0 0 0 3px rgba(194, 164, 94, 0.1);
}

.header-search input {
  border-color: transparent;
  color: #f5f5f4;
  background: #0b0d0f;
}

.header-search input::placeholder {
  color: #8f9499;
}

.header-search button {
  border-color: rgba(194, 164, 94, 0.7);
  color: #f2d487;
  background: #111315;
}

body.is-home .header-search button {
  width: 48px;
  padding: 0;
  border-color: transparent;
  font-size: 0;
  background: transparent;
}

body.is-home .header-search button::before {
  content: "⌕";
  color: #dededb;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
}

.account-link,
.cart-link {
  border-color: rgba(194, 164, 94, 0.34);
  color: #f5f5f4;
  background: transparent;
}

.cart-count {
  border: 1px solid rgba(194, 164, 94, 0.76);
  color: #f2d487;
  background: transparent;
}

.category-navigation {
  position: relative;
  z-index: 30;
  min-width: 0;
  border-bottom: 1px solid rgba(194, 164, 94, 0.24);
  background: #050505;
}

.category-navigation-inner {
  width: 100%;
  max-width: var(--content-max-width);
  min-height: 52px;
  display: flex;
  align-items: stretch;
  gap: clamp(0.2rem, 1vw, 1.3rem);
  margin-inline: auto;
  padding-inline: var(--page-inline);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-navigation-inner::-webkit-scrollbar {
  display: none;
}

.category-navigation a {
  position: relative;
  min-height: 52px;
  display: inline-flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.65rem;
  color: #d6d6d3;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.category-navigation a::after {
  position: absolute;
  right: 0.65rem;
  bottom: 0;
  left: 0.65rem;
  height: 2px;
  background: transparent;
  content: "";
}

.category-navigation a:hover,
.category-navigation a:focus-visible,
.category-navigation a.active {
  color: #f2d487;
}

.category-navigation a.active::after {
  background: var(--accent);
}

.category-navigation-lead {
  justify-content: flex-start !important;
  color: #f2d487 !important;
  text-transform: uppercase;
}

.category-navigation-lead::before {
  margin-right: 0.6rem;
  color: var(--accent);
  content: "☰";
  font-size: 1rem;
}

.reference-brand-strip {
  border-bottom-color: rgba(194, 164, 94, 0.24);
  background: #050505;
  box-shadow: none;
}

body.is-home {
  --bg: #050505;
  --bg-soft: #080a0c;
  --card: #0c0f11;
  --sidebar: #090b0d;
  --surface: #101315;
  --surface-soft: #0b0d0f;
  --hover-surface: #121619;
  --text: #f4f4f2;
  --muted: #a9adaf;
  --subtle: #d2d4d3;
  --border: rgba(194, 164, 94, 0.25);
  --border-strong: rgba(194, 164, 94, 0.7);
  --action: #111315;
  color: var(--text);
  background: #050505;
}

body.is-home main {
  padding-top: 1rem;
}

body.is-home .homepage.marketplace-shell {
  display: block;
  min-height: 0;
}

body.is-home .homepage > .catalog-sidebar {
  display: none;
}

body.is-home .homepage > .catalog-content {
  gap: 1.15rem;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.is-home .module-category-panel {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.is-home .module-category-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 0.7rem;
}

body.is-home .module-category-card {
  grid-column: span 2;
  display: grid;
  grid-template-rows: minmax(0, 64%) minmax(0, 36%);
  gap: 0;
  min-height: 0;
  padding: 0;
  border-color: rgba(194, 164, 94, 0.68);
  border-radius: 13px;
  background: #080a0b;
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

body.is-home .module-category-card.is-wide {
  grid-column: span 5;
}

body.is-home .module-category-row-two {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

body.is-home .module-category-row-two .module-category-card.is-wide {
  grid-column: auto;
}

body.is-home .module-category-feature-panel {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 160px;
  padding: 1.1rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background:
    radial-gradient(120% 140% at 50% 115%, rgba(226, 152, 74, 0.16), transparent 60%),
    linear-gradient(160deg, #0d0f10 0%, #08090a 55%, #050506 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 28px rgba(0, 0, 0, 0.3);
}

body.is-home .feature-panel-circuit {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(194, 164, 94, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(194, 164, 94, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 70% at 50% 45%, black, transparent 85%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, black, transparent 85%);
  pointer-events: none;
}

body.is-home .feature-panel-glow {
  position: absolute;
  bottom: -18%;
  left: 50%;
  width: 78%;
  height: 65%;
  background: radial-gradient(closest-side, rgba(226, 152, 74, 0.55), rgba(226, 152, 74, 0.16) 55%, transparent 78%);
  filter: blur(18px);
  transform: translateX(-50%);
  pointer-events: none;
  animation: feature-panel-pulse 4.5s ease-in-out infinite;
}

@keyframes feature-panel-pulse {
  0%,
  100% {
    opacity: 0.75;
  }

  50% {
    opacity: 1;
  }
}

body.is-home .feature-panel-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

body.is-home .feature-panel-all {
  background: linear-gradient(180deg, #f7dfa0 0%, #e2a344 55%, #c2843a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 900;
  letter-spacing: 0.05em;
}

body.is-home .feature-panel-rest {
  background: linear-gradient(180deg, #fbf7ef 0%, #e7e2d6 55%, #b9b3a4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.22em;
}

body.is-home .module-category-card:hover {
  border-color: rgba(226, 190, 91, 0.92);
  background: #0b0d0f;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.32);
  transform: translateY(-3px);
}

body.is-home .module-category-card.is-empty {
  opacity: 0.86;
}

body.is-home .category-card-media {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #050505;
}

body.is-home .category-card-media img {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  transition: transform 180ms ease;
}

body.is-home .module-category-card:hover .category-card-media img {
  transform: scale(1.025);
}

body.is-home .module-category-body {
  grid-template-rows: auto auto auto 1fr;
  gap: 0.22rem;
  align-content: start;
  min-height: 0;
  padding: 0.42rem 0.64rem 0.48rem;
  text-align: center;
}

body.is-home .module-category-card-top {
  display: none;
}

body.is-home .module-card-title {
  color: #f7f7f5;
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.14;
  text-transform: uppercase;
  -webkit-line-clamp: 1;
}

body.is-home .module-card-description {
  color: #d9b957;
  font-size: 0.8rem;
  line-height: 1.35;
  -webkit-line-clamp: 2;
}

body.is-home .module-card-footer {
  align-self: end;
  margin-top: 0.1rem;
  padding-top: 0.3rem;
  border-top: 1px solid rgba(194, 164, 94, 0.16);
}

@media (min-width: 1280px) {
  body.is-home .module-category-card.is-primary {
    height: clamp(255px, 15vw, 285px);
  }

  body.is-home .module-category-row-two {
    grid-template-columns: 1fr 1.25fr 1fr;
    align-items: stretch;
  }

  body.is-home .module-category-card.is-wide {
    height: clamp(255px, 15vw, 285px);
    grid-template-columns: minmax(0, 58%) minmax(0, 42%);
    grid-template-rows: minmax(0, 1fr);
  }

  body.is-home .module-category-card.is-wide .category-card-media {
    border-radius: 12px 0 0 12px;
  }

  body.is-home .module-category-card.is-wide .module-category-body {
    align-content: center;
    width: 100%;
    padding-inline: clamp(0.7rem, 1.5vw, 1.5rem);
  }

  body.is-home .module-category-card.is-wide .module-card-title {
    font-size: clamp(0.88rem, 1.1vw, 1.2rem);
    line-height: 1.16;
    white-space: normal;
    overflow-wrap: break-word;
    -webkit-line-clamp: 2;
  }

  body.is-home .module-category-feature-panel {
    height: clamp(255px, 15vw, 285px);
    min-height: 0;
  }
}

body.is-home .module-count-inline {
  color: #8f9499;
}

body.is-home .module-card-action {
  color: #e1bf67;
}

body.is-home .latest-catalog {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.is-home .latest-catalog .section-heading {
  margin-bottom: 0;
  padding: 0.25rem 0.15rem 0.7rem;
  border-bottom: 1px solid rgba(194, 164, 94, 0.34);
}

body.is-home .latest-catalog .section-heading h2 {
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  text-transform: uppercase;
}

body.is-home .section-link {
  padding: 0.58rem 0.85rem;
  border: 1px solid rgba(194, 164, 94, 0.68);
  border-radius: 8px;
  color: #f2d487;
  background: #090b0d;
}

body.is-home .catalog-entry-list {
  gap: 0;
  border-right: 1px solid rgba(194, 164, 94, 0.22);
  border-left: 1px solid rgba(194, 164, 94, 0.22);
}

body.is-home .catalog-entry {
  border-width: 0 0 1px;
  border-color: rgba(194, 164, 94, 0.22);
  border-radius: 0;
  background: #080a0b;
}

body.is-home .catalog-entry:hover {
  border-color: rgba(194, 164, 94, 0.58);
  background: #101315;
}

body.is-home .notice-strip {
  border-top: 1px solid rgba(194, 164, 94, 0.2);
  color: #8f9499;
}

body.is-home .site-footer {
  border-top-color: rgba(194, 164, 94, 0.24);
  background: #050505;
}

@media (max-width: 1279px) {
  body.is-home .module-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-home .module-category-card,
  body.is-home .module-category-card.is-wide {
    grid-column: auto;
  }

  body.is-home .module-category-card {
    grid-template-rows: auto 1fr;
  }

  body.is-home .category-card-media {
    height: auto;
    aspect-ratio: 16 / 9;
  }

}

@media (max-width: 920px) {
  .category-navigation-inner {
    padding-inline: 1rem;
  }

  .category-navigation a {
    flex-basis: auto;
  }

  body.is-home main {
    padding-top: 0.75rem;
  }
}

@media (max-width: 700px) {
  .category-navigation-inner {
    min-height: 46px;
    padding-inline: 0.5rem;
  }

  .category-navigation a {
    min-height: 46px;
    padding-inline: 0.58rem;
    font-size: 0.74rem;
  }

  body.is-home .module-category-grid {
    grid-template-columns: 1fr;
  }

  body.is-home .module-category-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 0;
  }

  body.is-home .category-card-media {
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 12px 12px 0 0;
  }

  body.is-home .module-category-body {
    text-align: center;
  }

  body.is-home .module-card-footer {
    width: 100%;
  }

  body.is-home .module-category-feature-panel {
    min-height: 150px;
    padding: 0.9rem;
  }

  body.is-home .feature-panel-all {
    font-size: 1.9rem;
  }

  body.is-home .feature-panel-rest {
    font-size: 0.92rem;
  }

}

@media (max-width: 470px) {
  .category-navigation-lead {
    font-size: 0;
  }

  .category-navigation-lead::before {
    margin-right: 0;
    font-size: 1rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.is-home .module-category-card,
  body.is-home .category-card-media img {
    transition: none;
  }

  body.is-home .feature-panel-glow {
    animation: none;
    opacity: 0.85;
  }
}

/* Interactive approved homepage: real module cards replace the legacy showcase panel. */
body.is-home .module-category-heading {
  align-items: center;
  margin-bottom: 0.65rem;
  padding: 0 0.15rem 0.58rem;
  border-bottom: 1px solid rgba(194, 164, 94, 0.34);
}

body.is-home .module-category-heading h2 {
  color: #f7f7f5;
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
}

body.is-home .module-category-heading .eyebrow {
  color: #d9b957;
  letter-spacing: 0.12em;
}

body.is-home .module-category-grid {
  grid-template-columns: repeat(20, minmax(0, 1fr));
}

body.is-home .module-category-card {
  grid-column: span 4;
  height: clamp(235px, 14vw, 260px);
}

body.is-home .premium-category-showcase {
  user-select: none;
  -webkit-user-select: none;
}

body.is-home .module-category-card:nth-child(n + 6) {
  grid-column: span 4;
}

body.is-home .module-category-card:focus-visible {
  outline: 2px solid #f0c85e;
  outline-offset: 3px;
  border-color: #f0c85e;
}

body.is-home .homepage-trust-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(194, 164, 94, 0.32);
  border-radius: 11px;
  background: linear-gradient(180deg, #0d1012, #080a0b);
  overflow: hidden;
}

body.is-home .homepage-trust-band > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon copy";
  align-items: center;
  gap: 0.12rem 0.7rem;
  min-width: 0;
  padding: 0.9rem 1rem;
  border-right: 1px solid rgba(194, 164, 94, 0.2);
}

body.is-home .homepage-trust-band > div:last-child {
  border-right: 0;
}

body.is-home .homepage-trust-band span {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(218, 177, 70, 0.55);
  border-radius: 50%;
  color: #e1bf67;
  font-weight: 900;
}

body.is-home .homepage-trust-band strong {
  grid-area: title;
  color: #f4f4f2;
  font-size: 0.83rem;
}

body.is-home .homepage-trust-band small {
  grid-area: copy;
  min-width: 0;
  color: #8f9499;
  font-size: 0.7rem;
  line-height: 1.3;
}

@media (max-width: 1279px) {
  body.is-home .module-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.is-home .module-category-card,
  body.is-home .module-category-card:nth-child(n + 6) {
    grid-column: auto;
    height: auto;
  }
}

@media (max-width: 920px) {
  body.is-home .module-category-grid,
  body.is-home .homepage-trust-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-home .homepage-trust-band > div:nth-child(2) {
    border-right: 0;
  }

  body.is-home .homepage-trust-band > div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(194, 164, 94, 0.2);
  }
}

@media (max-width: 700px) {
  body.is-home .module-category-grid {
    grid-template-columns: 1fr;
  }

  body.is-home .module-category-heading {
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  body.is-home .homepage-trust-band {
    grid-template-columns: 1fr;
  }

  body.is-home .homepage-trust-band > div {
    border-right: 0;
    border-bottom: 1px solid rgba(194, 164, 94, 0.2);
  }

  body.is-home .homepage-trust-band > div:last-child {
    border-bottom: 0;
  }
}
