﻿/*
 * Catalog page styles (v1).
 * Source: extracted from inline <style> in its HTML file to keep responsibilities separated.
 * Rule: preserve visual behavior without refactoring runtime logic.
 */

:root {
  --wx-brand-bg: #05060a;
  --wx-brand-surface: rgba(12, 15, 21, 0.9);
  --wx-brand-border: rgba(212, 175, 55, 0.44);
  --wx-brand-border-soft: rgba(212, 175, 55, 0.28);
  --wx-brand-border-strong: rgba(212, 175, 55, 0.58);
  --wx-brand-accent: #d6b271;
  --wx-brand-accent-strong: #c5974f;
  --wx-header-gold: #d6b271;
  --wx-header-gold-soft: rgba(214, 178, 113, 0.5);
  --wx-header-silver: #d6dbe3;
  --wx-header-light: #eef1f6;
  --wx-header-muted: rgba(214, 220, 229, 0.62);
}

body#wx-page {
  font-family: "Manrope", "Sora", sans-serif;
  background:
    radial-gradient(
      110% 90% at 0% 0%,
      rgba(214, 178, 113, 0.12) 0%,
      rgba(8, 10, 14, 0) 62%
    ),
    radial-gradient(
      90% 70% at 100% 0%,
      rgba(85, 109, 147, 0.14) 0%,
      rgba(8, 10, 14, 0) 58%
    ),
    var(--wx-brand-bg);
  color: #f8f4ea;
}

#site-header [data-wx-nav1-surface] {
  border-color: var(--wx-header-gold-soft) !important;
  background: #040404 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -1px 0 var(--wx-header-gold-soft);
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

#site-header [data-wx-nav23-surface],
#site-header [data-wx-mobile-panel] {
  border-color: var(--wx-header-gold-soft) !important;
  border-top: 1px solid var(--wx-header-gold-soft);
  background: linear-gradient(
    135deg,
    rgba(24, 28, 36, 0.54) 0%,
    rgba(13, 16, 22, 0.38) 55%,
    rgba(9, 12, 17, 0.5) 100%
  ) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(214, 178, 113, 0.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  backdrop-filter: blur(16px) saturate(1.15);
}

#site-header #wx-nav1 #wx-hours-short,
#site-header #wx-nav1 #wx-status-text {
  color: var(--wx-header-silver) !important;
}

#site-header #wx-nav1 [data-wx-icons-nav1] a {
  color: var(--wx-header-gold) !important;
}

#site-header #wx-brand-name {
  color: var(--wx-header-silver) !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
}

#site-header #wx-brand-tagline {
  color: var(--wx-header-muted) !important;
}

#site-header #wx-nav2 [data-wx-nav2-links] a,
#site-header #wx-nav3 #wx-mobile-panel a {
  color: var(--wx-header-light) !important;
}

#site-header #wx-nav2 [data-wx-nav2-links] a svg,
#site-header #wx-nav3 #wx-mobile-panel a svg,
#site-header #wx-mobile-toggle svg {
  color: var(--wx-header-light) !important;
}

#site-header #wx-nav2 [data-wx-nav2-links] a:hover,
#site-header #wx-nav3 #wx-mobile-panel a:hover {
  background: rgba(214, 178, 113, 0.08) !important;
}

#wx-catalog-categories {
  border-color: var(--wx-brand-border-soft) !important;
  background: rgba(8, 10, 14, 0.82) !important;
}

#wx-catalog-categories::before {
  background: #0b0e13;
}

#wx-catalog [data-wx-mobile-scroll-hint] {
  border-color: var(--wx-brand-border-soft);
  background: rgba(214, 178, 113, 0.11);
}

#wx-filter-modal [data-wx-filter-modal-panel],
#wx-product-modal [data-wx-modal-panel] {
  border-color: var(--wx-brand-border-soft);
}

/* Tono premium dorado para bordes/rings del menu digital (main only). */
#wx-main [class*="border-white/"] {
  border-color: var(--wx-brand-border-soft) !important;
}

#wx-main [class*="ring-white/"] {
  --tw-ring-color: var(--wx-brand-border-soft) !important;
}

#wx-main [class*="hover:ring-white/"]:hover {
  --tw-ring-color: var(--wx-brand-border) !important;
}

#wx-main [class*="focus:ring-white/"]:focus,
#wx-main [class*="focus-visible:ring-white/"]:focus-visible {
  --tw-ring-color: var(--wx-brand-border-strong) !important;
}

#wx-catalog-hero-backdrop {
  position: relative;
  height: clamp(220px, 31vw, 400px);
  overflow: hidden;
  background: #06070b;
  z-index: 0;
  isolation: isolate;
}

#wx-catalog-hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      to bottom,
      rgba(4, 6, 10, 0.12) 0%,
      rgba(4, 6, 10, 0.48) 56%,
      rgba(5, 7, 12, 0.84) 100%
    ),
    radial-gradient(
      120% 90% at 50% 18%,
      rgba(12, 14, 22, 0.24) 0%,
      rgba(8, 10, 16, 0.54) 64%,
      rgba(5, 7, 12, 0.78) 100%
    );
}

#wx-catalog-hero {
  position: relative;
  z-index: 6;
  margin-top: clamp(-118px, -10.1vw, -84px);
  border-top-left-radius: clamp(82px, 10.2vw, 154px);
  border-top-right-radius: clamp(82px, 10.2vw, 154px);
  border: 1px solid var(--wx-brand-border);
  border-bottom: 0;
  background: linear-gradient(
    180deg,
    rgb(9 9 11 / 0.78) 0%,
    rgb(9 9 11 / 0.9) 45%,
    rgb(9 9 11 / 0.96) 100%
  );
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
  backdrop-filter: blur(14px) saturate(1.05);
  box-shadow:
    0 -16px 34px rgba(0, 0, 0, 0.32),
    0 14px 30px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

#wx-catalog-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(212, 175, 55, 0),
    rgba(212, 175, 55, 0.46),
    rgba(212, 175, 55, 0)
  );
  pointer-events: none;
}

#wx-catalog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  pointer-events: none;
  box-shadow:
    inset 0 0 0 1px rgba(212, 175, 55, 0.12),
    inset 0 12px 20px rgba(4, 6, 11, 0.14);
}

#wx-catalog-hero-atmo {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

#wx-catalog-hero > .relative {
  z-index: 4;
}

#wx-catalog-hero-content {
  padding-top: clamp(2.25rem, 4vw, 3.15rem);
  padding-bottom: clamp(1.9rem, 3.6vw, 2.7rem);
}

#wx-catalog-hero-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(1.15rem, 2.8vw, 1.85rem);
}

#wx-catalog-hero-search {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 479.98px) {
  #wx-catalog-hero-backdrop {
    height: clamp(238px, 62vw, 320px);
  }

  #wx-catalog-hero {
    margin-top: clamp(-90px, -18vw, -68px);
    border-top-left-radius: clamp(70px, 19vw, 104px);
    border-top-right-radius: clamp(70px, 19vw, 104px);
  }

  #wx-catalog-hero-content {
    padding-top: clamp(3rem, 10.5vw, 4rem);
    padding-bottom: clamp(2rem, 7vw, 2.85rem);
  }
}

@media (min-width: 480px) and (max-width: 767.98px) {
  #wx-catalog-hero-backdrop {
    height: clamp(246px, 54vw, 344px);
  }

  #wx-catalog-hero {
    margin-top: clamp(-96px, -14vw, -76px);
    border-top-left-radius: clamp(76px, 14vw, 118px);
    border-top-right-radius: clamp(76px, 14vw, 118px);
  }

  #wx-catalog-hero-content {
    padding-top: clamp(2.7rem, 8vw, 3.5rem);
    padding-bottom: clamp(1.95rem, 5.2vw, 2.5rem);
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  #wx-catalog-hero {
    margin-top: clamp(-108px, -10.8vw, -86px);
    border-top-left-radius: clamp(80px, 10.8vw, 132px);
    border-top-right-radius: clamp(80px, 10.8vw, 132px);
  }

  #wx-catalog-hero-content {
    padding-top: clamp(2.95rem, 5.6vw, 3.75rem);
    padding-bottom: clamp(2.1rem, 3.8vw, 2.8rem);
  }

  #wx-catalog-hero-search {
    max-width: 560px;
  }
}

@media (min-width: 1024px) {
  #wx-catalog-hero-grid {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: clamp(1.75rem, 2.8vw, 2.4rem);
  }

  #wx-catalog-hero-search {
    width: clamp(320px, 33vw, 490px);
  }
}

@media (min-width: 1280px) {
  #wx-catalog-hero {
    margin-top: clamp(-122px, -8.8vw, -96px);
  }
}

#wx-catalog-hero [data-wx-hero-glow] {
  position: absolute;
  border-radius: 9999px;
  filter: blur(110px);
  transform: translate3d(0, 0, 0);
  opacity: 0.22;
}

#wx-catalog-hero [data-wx-hero-glow="left"] {
  top: clamp(18px, 8%, 44px);
  left: clamp(22px, 5.5%, 72px);
  width: clamp(220px, 30vw, 390px);
  height: clamp(220px, 30vw, 390px);
  background: rgba(13, 17, 26, 0.38);
}

#wx-catalog-hero [data-wx-hero-glow="right"] {
  top: clamp(24px, 10%, 52px);
  right: clamp(18px, 4.5%, 66px);
  width: clamp(200px, 28vw, 350px);
  height: clamp(200px, 28vw, 350px);
  background: rgba(10, 14, 22, 0.32);
}

/* Category bar uses the same transform timeline as header stack. */
#wx-catalog-categories {
  top: calc(
    var(--wx-catalog-base-top, 112px) - var(--wx-catalog-seam-overlap, 1px)
  );
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

#wx-catalog-categories::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: rgb(9 9 11);
  pointer-events: none;
}

#wx-catalog-categories [data-wx-cat-carousel] {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

#wx-catalog-categories [data-wx-cat-actions] {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.25rem;
}

#wx-catalog-categories [data-wx-cat-carousel]::before,
#wx-catalog-categories [data-wx-cat-carousel]::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(18px, 2.8vw, 34px);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 220ms ease;
}

#wx-catalog-categories [data-wx-cat-carousel]::before {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(9, 9, 11, 0.98),
    rgba(9, 9, 11, 0)
  );
}

#wx-catalog-categories [data-wx-cat-carousel]::after {
  right: 0;
  background: linear-gradient(to left, rgba(9, 9, 11, 0.98), rgba(9, 9, 11, 0));
}

#wx-catalog-categories[data-wx-cat-overflow="true"][data-wx-cat-can-scroll-left="true"]
  [data-wx-cat-carousel]::before {
  opacity: 1;
}

#wx-catalog-categories[data-wx-cat-overflow="true"][data-wx-cat-can-scroll-right="true"]
  [data-wx-cat-carousel]::after {
  opacity: 1;
}

#wx-catalog-categories [data-wx-catalog-categories-scroll] {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-block: 2px;
  padding-inline: 2px;
}

#wx-catalog-categories [data-wx-catalog-categories-scroll]::-webkit-scrollbar {
  display: none;
}

@media (min-width: 1024px) {
  #wx-catalog-categories[data-wx-cat-overflow="true"]
    [data-wx-catalog-categories-scroll] {
    -ms-overflow-style: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    padding-bottom: 8px;
  }

  #wx-catalog-categories[data-wx-cat-overflow="true"]
    [data-wx-catalog-categories-scroll]::-webkit-scrollbar {
    display: block;
    height: 8px;
  }

  #wx-catalog-categories[data-wx-cat-overflow="true"]
    [data-wx-catalog-categories-scroll]::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
  }

  #wx-catalog-categories[data-wx-cat-overflow="true"]
    [data-wx-catalog-categories-scroll]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 9999px;
  }

  #wx-catalog-categories[data-wx-cat-overflow="true"]
    [data-wx-catalog-categories-scroll]::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.45);
  }

  #wx-catalog-categories[data-wx-cat-overflow="false"] [data-wx-cat-carousel] {
    flex: 0 1 auto;
  }

  #wx-catalog-categories[data-wx-cat-overflow="false"]
    [data-wx-catalog-categories-scroll] {
    overflow-x: hidden;
  }

  #wx-catalog-categories[data-wx-cat-overflow="false"] [data-wx-cat-chip-list] {
    padding-right: 0;
  }
}

#wx-catalog-categories [data-wx-cat-chip-list] {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  min-width: max-content;
  padding-block: 1px;
  padding-right: 0.5rem;
}

#wx-catalog-categories [data-wx-cat-chip] {
  white-space: nowrap;
  flex: 0 0 auto;
}

#site-header[data-wx-nav1-hidden="true"]
  ~ #wx-main
  #wx-catalog-categories[data-wx-catalog-stuck="true"] {
  transform: translate3d(0, calc(var(--wx-nav1-h, 40px) * -1), 0);
}

@media (prefers-reduced-motion: reduce) {
  #wx-catalog-categories {
    transition: none !important;
  }
}

@keyframes wxFilterApplyPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.045);
  }
  100% {
    transform: scale(1);
  }
}

[data-wx-filter-modal-apply][data-wx-filter-pulse="true"] {
  animation: wxFilterApplyPulse 1.15s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  [data-wx-filter-modal-apply][data-wx-filter-pulse="true"] {
    animation: none;
  }
}

@keyframes wxMobileScrollHintDown {
  0% {
    transform: translateY(-2px);
    opacity: 0.55;
  }
  55% {
    transform: translateY(8px);
    opacity: 1;
  }
  100% {
    transform: translateY(-2px);
    opacity: 0.55;
  }
}

[data-wx-mobile-scroll-hint] svg {
  animation: wxMobileScrollHintDown 1.25s cubic-bezier(0.22, 1, 0.36, 1)
    infinite;
}

@media (prefers-reduced-motion: reduce) {
  [data-wx-mobile-scroll-hint] svg {
    animation: none;
  }
}

#wx-filter-modal [data-wx-filter-modal-shell] {
  width: 100%;
}

#wx-filter-modal [data-wx-filter-modal-panel] {
  display: flex;
  width: 100%;
  flex-direction: column;
  max-height: min(92dvh, 860px);
  border: 1px solid var(--wx-brand-border);
  box-shadow:
    0 40px 140px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(212, 175, 55, 0.11);
  background:
    radial-gradient(
      120% 120% at 16% -12%,
      rgba(255, 255, 255, 0.055) 0%,
      rgba(255, 255, 255, 0) 56%
    ),
    rgb(9 9 11);
}

#wx-filter-modal [data-wx-filter-modal-header],
#wx-filter-modal [data-wx-filter-modal-footer] {
  flex-shrink: 0;
}

#wx-filter-modal [data-wx-filter-modal-body] {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}

#wx-filter-modal [data-wx-filter-modal-body]::-webkit-scrollbar {
  width: 9px;
}

#wx-filter-modal [data-wx-filter-modal-body]::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
}

#wx-filter-modal [data-wx-filter-modal-body]::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 9999px;
}

#wx-filter-modal [data-wx-filter-modal-keywords-scroll] {
  max-height: clamp(180px, 30vh, 280px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}

#wx-filter-modal [data-wx-filter-modal-keywords-scroll]::-webkit-scrollbar {
  width: 8px;
}

#wx-filter-modal
  [data-wx-filter-modal-keywords-scroll]::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
}

#wx-filter-modal
  [data-wx-filter-modal-keywords-scroll]::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 9999px;
}

#wx-filter-modal [data-wx-filter-modal-body] section {
  border: 1px solid var(--wx-brand-border-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#wx-filter-modal [data-wx-filter-modal-close],
#wx-product-modal [data-wx-product-modal-close] {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--wx-brand-border-soft);
}

#wx-filter-modal [data-wx-filter-modal-close]:hover,
#wx-product-modal [data-wx-product-modal-close]:hover {
  border-color: var(--wx-brand-border);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 767.98px) {
  #wx-filter-modal [data-wx-filter-modal-panel] {
    max-height: calc(100dvh - 12px);
  }
}

#wx-product-modal [data-wx-modal-shell] {
  width: 100%;
}

#wx-product-modal [data-wx-modal-panel] {
  display: flex;
  width: 100%;
  flex-direction: column;
  max-height: min(94dvh, 910px);
  border: 1px solid var(--wx-brand-border);
  box-shadow:
    0 40px 140px rgba(0, 0, 0, 0.65),
    inset 0 0 0 1px rgba(212, 175, 55, 0.11);
  background:
    radial-gradient(
      120% 120% at 16% -14%,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(255, 255, 255, 0) 58%
    ),
    rgb(9 9 11 / 0.97);
}

#wx-product-modal [data-wx-modal-header] {
  flex-shrink: 0;
}

#wx-product-modal [data-wx-modal-body] {
  min-height: 0;
  flex: 1 1 auto;
}

#wx-product-modal [data-wx-modal-scroll] {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(212, 175, 55, 0.4) transparent;
}

#wx-product-modal [data-wx-modal-scroll]::-webkit-scrollbar {
  width: 9px;
}

#wx-product-modal [data-wx-modal-scroll]::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;
}

#wx-product-modal [data-wx-modal-scroll]::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.4);
  border-radius: 9999px;
}

#wx-product-modal [data-wx-modal-scroll] > div {
  border: 1px solid var(--wx-brand-border-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  #wx-product-modal [data-wx-modal-body] {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  }
}

@media (max-width: 767.98px) {
  #wx-product-modal [data-wx-modal-shell] {
    align-items: flex-end;
    padding: 0;
  }

  #wx-product-modal [data-wx-modal-panel] {
    max-height: 100dvh;
    border-radius: 1.6rem 1.6rem 0 0;
    border-bottom: 0;
  }

  #wx-product-modal [data-wx-modal-media] {
    min-height: 260px;
    max-height: 40dvh;
  }

  #wx-product-modal [data-wx-modal-scroll] {
    padding-bottom: 0.35rem;
  }
}
