/* Galaxy Mobile — Premium Category Page */

.lx-category--premium {
  padding: 12px 0 80px;
}

/* Hero v2 — full-width editorial */
.lx-cat-hero-v2 {
  position: relative;
  margin: 0 0 48px;
  min-height: clamp(380px, 52vh, 520px);
  color: #fff;
  overflow: hidden;
}

.lx-cat-hero-v2__photo {
  position: absolute;
  inset: 0;
}

.lx-cat-hero-v2__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  filter: blur(2px) saturate(1.1);
}

.lx-cat-hero-v2__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(8, 12, 22, 0.92) 0%, rgba(8, 12, 22, 0.72) 42%, rgba(8, 12, 22, 0.35) 100%),
    radial-gradient(ellipse at 80% 20%, rgba(146, 32, 119, 0.35), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(4, 116, 68, 0.28), transparent 50%);
}

.lx-cat-hero-v2__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.lx-cat-hero-v2__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
  animation: lx-cat-float 9s ease-in-out infinite;
}

.lx-cat-hero-v2__orb--1 {
  width: 320px;
  height: 320px;
  top: -100px;
  right: 12%;
  background: rgba(146, 32, 119, 0.45);
}

.lx-cat-hero-v2__orb--2 {
  width: 240px;
  height: 240px;
  bottom: -80px;
  left: 6%;
  background: rgba(4, 116, 68, 0.38);
  animation-delay: -3s;
}

.lx-cat-hero-v2__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: 40px;
  align-items: center;
  padding: 56px 0 64px;
}

.lx-cat-hero-v2__panel {
  max-width: 640px;
  padding: 32px 34px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.lx-cat-hero-v2__title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
  color: #ffffff;
}

.lx-cat-hero-v2__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.lx-cat-hero-v2__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
}

.lx-cat-hero-v2__desc {
  max-width: 54ch;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.75;
  font-size: 15px;
}

.lx-cat-hero-v2__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lx-cat-hero-v2__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 420px);
}

.lx-cat-hero-v2__frame {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.35);
}

.lx-cat-hero-v2__frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 28px;
  display: block;
  transition: transform 0.65s ease;
}

.lx-cat-hero-v2:hover .lx-cat-hero-v2__frame img {
  transform: scale(1.05);
}

.lx-cat-hero-v2__glow {
  position: absolute;
  inset: 12% -8% -12% -8%;
  background: radial-gradient(circle, rgba(146, 32, 119, 0.35), transparent 68%);
  z-index: 0;
  pointer-events: none;
}

@keyframes lx-cat-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.05); }
}

/* Refine search — image tiles */
.lx-refine {
  margin-bottom: 44px;
}

.lx-refine__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
}

.lx-refine-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--lx-border);
  background: #fff;
  box-shadow: var(--lx-shadow);
  scroll-snap-align: start;
  transition: transform 0.35s var(--lx-ease), box-shadow 0.35s var(--lx-ease);
}

.lx-refine-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lx-shadow-lg);
}

.lx-refine-card__media {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(160deg, #f8fafc 0%, #eef2f7 100%);
  overflow: hidden;
}

.lx-refine-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 22px;
  transition: transform 0.5s var(--lx-ease);
}

.lx-refine-card:hover .lx-refine-card__img {
  transform: scale(1.06);
}

.lx-refine-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.45) 0%, transparent 45%);
  pointer-events: none;
}

.lx-refine-card__body {
  padding: 16px 18px 18px;
}

.lx-refine-card__name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.lx-refine-card__count {
  font-size: 12px;
  color: var(--lx-gray);
  font-weight: 500;
}

.lx-refine-card__arrow {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--lx-primary);
  font-size: 12px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
  opacity: 0;
  transform: translateX(-6px);
  transition: all 0.3s ease;
}

.lx-refine-card:hover .lx-refine-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Layout */
.lx-category--premium .lx-category-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* Filter sidebar */
.lx-filter {
  position: sticky;
  top: 96px;
  border: 1px solid var(--lx-border);
  border-radius: var(--lx-radius);
  background: #fff;
  box-shadow: var(--lx-shadow);
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.lx-filter__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--lx-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.lx-filter__head h2 {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lx-filter__close {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--lx-border);
  border-radius: 12px;
  background: #fff;
}

.lx-filter__form {
  padding: 8px 16px 20px;
}

.lx-filter__group {
  border-bottom: 1px solid var(--lx-border);
  padding: 12px 0;
}

.lx-filter__group summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lx-filter__group summary::-webkit-details-marker { display: none; }

.lx-filter__group summary::after {
  content: '+';
  color: var(--lx-gray);
  font-size: 18px;
}

.lx-filter__group[open] summary::after { content: '−'; }

.lx-filter__body {
  padding-top: 12px;
  display: grid;
  gap: 8px;
}

.lx-filter__check,
.lx-filter__chip {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

.lx-filter__chip span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--lx-border);
  background: var(--lx-bg-light);
  transition: all 0.2s ease;
}

.lx-filter__chip input:checked + span {
  background: var(--lx-gradient);
  border-color: transparent;
  color: #fff;
}

.lx-filter__check input,
.lx-filter__chip input,
.lx-filter__color input {
  accent-color: var(--lx-primary);
}

.lx-filter__price input[type="range"] {
  width: 100%;
  accent-color: var(--lx-primary);
}

.lx-filter__price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--lx-gray);
  margin-top: 6px;
}

.lx-filter__colors {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lx-filter__color span {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lx-swatch);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--lx-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lx-filter__color input:checked + span {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px var(--lx-primary);
}

.lx-filter__stars {
  color: #f59e0b;
  font-size: 12px;
}

.lx-filter__actions {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.lx-filter__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: 1200;
}

/* Toolbar */
.lx-cat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid var(--lx-border);
  border-radius: var(--lx-radius);
  background: var(--lx-bg-light);
}

.lx-cat-toolbar__left,
.lx-cat-toolbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.lx-cat-toolbar__count {
  font-size: 13px;
  color: var(--lx-gray);
}

.lx-view-toggle {
  display: inline-flex;
  border: 1px solid var(--lx-border);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.lx-view-toggle__btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--lx-gray);
  transition: all 0.2s ease;
}

.lx-view-toggle__btn.is-active,
.lx-view-toggle__btn:hover {
  background: var(--lx-gradient);
  color: #fff;
}

/* Product grid list mode */
.lx-products--listing.is-list {
  grid-template-columns: 1fr;
}

.lx-products--listing.is-list .lx-product--listing {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.lx-products--listing.is-list .lx-product--listing .lx-product__media {
  aspect-ratio: auto;
  min-height: 220px;
}

.lx-product__installment {
  font-size: 12px;
  color: var(--lx-gray);
  margin-bottom: 12px;
}

.lx-product__footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.lx-product__buy {
  text-align: center;
}

.lx-product--listing .lx-product__body {
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
}

.lx-product--listing {
  border-radius: 22px;
  border-color: rgba(17, 24, 39, 0.08);
}

.lx-product--listing .lx-product__media {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 68%);
}

.lx-product--listing .lx-product__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(255, 255, 255, 0.65) 100%);
  pointer-events: none;
  z-index: 2;
}

.lx-product--listing:hover .lx-product__gallery .lx-product__img.is-active {
  transform: scale(1.07);
}

.lx-product--listing .lx-product__actions {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lx-product--listing:hover .lx-product__actions {
  opacity: 1;
  transform: translateY(0);
}

.lx-product--listing .lx-product__name {
  font-size: 15px;
  line-height: 1.4;
  min-height: 2.8em;
}

.lx-product--listing .lx-product__price-new {
  font-size: 1.15rem;
}

.lx-product--listing .lx-product__footer {
  padding-top: 4px;
}

.lx-product--listing .lx-product__cart {
  border-radius: 14px;
}

/* Carousel rail */
.lx-carousel-rail {
  margin-top: 64px;
}

.lx-carousel-rail--light {
  padding: 44px 28px 48px;
  margin-left: -24px;
  margin-right: -24px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-radius: 28px;
  border: 1px solid var(--lx-border);
}

.lx-carousel-rail__shell {
  position: relative;
}

.lx-carousel-rail__viewport {
  overflow: visible;
}

.lx-carousel-rail__viewport .lx-products--carousel {
  overflow-x: auto;
}

.lx-carousel-rail__fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 56px;
  z-index: 2;
  pointer-events: none;
}

.lx-carousel-rail__fade--left {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, transparent 100%);
}

.lx-carousel-rail--light .lx-carousel-rail__fade--left {
  background: linear-gradient(90deg, #f8fafc 0%, transparent 100%);
}

.lx-carousel-rail__fade--right {
  right: 0;
  background: linear-gradient(270deg, #fff 0%, transparent 100%);
}

.lx-carousel-rail--light .lx-carousel-rail__fade--right {
  background: linear-gradient(270deg, #f8fafc 0%, transparent 100%);
}

.lx-products--rail {
  gap: 20px;
  padding: 8px 4px 16px;
  scroll-padding-left: 4px;
}

.lx-products--rail .lx-product {
  flex: 0 0 calc(25% - 15px);
  min-width: 240px;
  border-radius: 20px;
}

.lx-carousel-rail__progress {
  height: 4px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.lx-carousel-rail__bar {
  display: block;
  height: 100%;
  width: 30%;
  border-radius: inherit;
  background: var(--lx-gradient);
  transform-origin: left center;
  transition: transform 0.15s ease;
}

.lx-carousel-nav--rail .lx-carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

/* Connect on category */
.lx-connect--category {
  margin-top: 72px;
  margin-bottom: 16px;
}

/* Newsletter */
.lx-newsletter {
  margin-top: 64px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--lx-gradient);
  color: #fff;
  box-shadow: 0 24px 60px rgba(146, 32, 119, 0.2);
}

.lx-newsletter__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  padding: 44px;
}

.lx-newsletter__title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.lx-newsletter__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.lx-newsletter__form {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  padding: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lx-newsletter__form input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 12px 16px;
  font-family: inherit;
  min-width: 0;
}

.lx-newsletter__form input::placeholder { color: rgba(255, 255, 255, 0.65); }

.lx-newsletter__form .lx-btn {
  white-space: nowrap;
  background: #fff;
  color: var(--lx-primary);
}

/* Pagination */
.lx-cat-pagination .pagination {
  gap: 6px;
  margin: 0;
}

.lx-cat-pagination .page-link {
  border-radius: 12px;
  border-color: var(--lx-border);
  font-weight: 600;
}

.lx-cat-pagination .page-item.active .page-link {
  background: var(--lx-gradient);
  border-color: transparent;
}

/* Empty */
.lx-category-empty__art {
  width: 88px;
  height: 88px;
  margin: 0 auto 20px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--lx-primary);
  font-size: 36px;
  box-shadow: var(--lx-shadow);
}

/* Mobile filter bar */
.lx-mobile-filter-bar {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 78px;
  z-index: 1100;
  gap: 10px;
}

.lx-mobile-filter-bar__btn {
  flex: 1;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.18);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lx-product.is-filtered-out {
  display: none !important;
}

@media (max-width: 991px) {
  .lx-cat-hero-v2__inner {
    grid-template-columns: 1fr;
    padding: 40px 0 48px;
  }

  .lx-cat-hero-v2__panel {
    padding: 26px 24px;
  }

  .lx-cat-hero-v2__visual {
    justify-self: center;
    width: min(100%, 320px);
  }

  .lx-products--rail .lx-product {
    flex: 0 0 calc(50% - 10px);
    min-width: 200px;
  }

  .lx-carousel-rail__fade { display: none; }

  .lx-category--premium .lx-category-layout {
    grid-template-columns: 1fr;
  }

  .lx-filter {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(360px, 92vw);
    max-height: none;
    z-index: 1300;
    transform: translateX(-105%);
    transition: transform 0.35s ease;
    border-radius: 0 24px 24px 0;
  }

  .lx-filter.is-open {
    transform: translateX(0);
  }

  .lx-filter__close { display: inline-flex; align-items: center; justify-content: center; }

  .lx-mobile-filter-bar {
    display: flex;
  }

  .lx-newsletter__inner {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .lx-newsletter__form {
    flex-direction: column;
    border-radius: 20px;
  }
}

@media (max-width: 767px) {
  .lx-products--listing.is-list .lx-product--listing {
    grid-template-columns: 1fr;
  }

  .lx-cat-toolbar__right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
}
