/* ===============================
   PRODUCTS FILTER BAR
================================ */

.products-filter-bar {
  position: sticky;
  top: 88px;
  z-index: 40;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===============================
   FILTER FORM
================================ */

.products-filters {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 6vw;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.8fr 0.8fr auto 0.7fr auto;
  gap: 12px;
  align-items: center;
}

.filter-search,
.filter-select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--cream);
  font-size: 14px;
  outline: none;
}

.filter-search::placeholder {
  color: rgba(255, 238, 189, 0.55);
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 238, 189, 0.80);
  font-size: 13px;
  text-transform: uppercase;
}

.filter-submit {
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  font-size: 13px;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--gradient-gold);
  cursor: pointer;
}
/* ===============================
   SECTION TITLE
================================ */

.section-title {
  max-width: 1200px;
  margin: 28px auto;
  font-size: clamp(18px, 1.85vw, 26px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
}

/* ===============================
   PRODUCTS GRID (SAFE)
================================ */

.products-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

/* ===============================
   PRODUCT CARD
================================ */

.product-card {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}


.product-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -120%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 40%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.08) 60%,
    transparent 100%
  );
  transform: rotate(12deg);
  opacity: 0;
  transition:
    left 0.9s ease,
    opacity 0.3s ease;
  pointer-events: none;
}

.product-card:hover::before {
  left: 140%;
  opacity: 1;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.72);
}

.product-title {
    text-align:center;
}

.product-card.soldout .product-image img {
  filter: grayscale(100%) blur(2px);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.soldout::after {
  content: "Sold Out";
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-sandstone-grey);
  color: #111;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.5px;
  z-index: 5;
  pointer-events: none;
}


/* ===============================
   IMAGE
================================ */

.product-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================================
   ARTWORKS ARCHIVE — BASE
========================================================= */

.artworks-collections {
  position: relative;
  padding: 96px 6vw 110px;
  overflow: hidden;
}

.artworks-collections::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,238,189,0.06), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(188,150,51,0.08), transparent 65%);
  pointer-events: none;
}

.collections-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.collections-title {
  text-align: center;
  margin-bottom: 42px;
  font-size: clamp(20px, 2vw, 28px);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* =========================================================
   COLLECTIONS SHOWCASE
========================================================= */

.collections-showcase {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.collection-slide {
  position: absolute;
  inset: 0;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;

  opacity: 0;
  transform: translateY(12px);
  filter: blur(10px);
  transition:
    opacity 1.4s ease,
    transform 1.4s ease,
    filter 1.4s ease;
}

.collection-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.collection-name {
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,238,189,0.95);
}

.collection-desc {
  max-width: 60ch;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(226,232,240,0.86);
}

/* =========================================================
   DIVIDER BANNERS
========================================================= */

.artworks-divider {
  position: relative;
  padding: 110px 6vw;
  overflow: hidden;
}

.artworks-divider-inner {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.divider-text {
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,238,189,0.9);
  position: relative;
  z-index: 2;
}

.divider-glow {
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle at center,
      rgba(255,238,189,0.12),
      transparent 60%);
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

.artworks-divider.is-visible .divider-glow {
  opacity: 1;
  transform: scale(1);
}

/* Tier variants */
.divider-luxury .divider-glow {
  background: radial-gradient(circle, rgba(188,150,51,0.18), transparent 60%);
}

.divider-premium .divider-glow {
  background: radial-gradient(circle, rgba(0,150,110,0.18), transparent 60%);
}

.divider-accessible .divider-glow {
  background: radial-gradient(circle, rgba(200,200,200,0.18), transparent 60%);
}


.artworks-divider {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artworks-divider .divider-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.artworks-divider .divider-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.artworks-divider-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.divider-text {
    color: var(--color-imperial-gold);
    font-size: 18px;
    letter-spacing: 0.12em;
}

/* =========================================================
   SECTIONS SPACING FIX (IMPORTANT)
========================================================= */

.artworks-section {
  position: relative;
  padding: 90px 6vw 100px;
  clear: both;
}

.artworks-section + .artworks-divider {
  margin-top: 40px;
}

.artworks-divider + .artworks-section {
  margin-top: 40px;
}

/* Prevent overlap with showcase */
.artworks-collections + .artworks-section {
  margin-top: 80px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {
  .collection-slide {
    padding: 32px;
  }

  .artworks-divider {
    padding: 80px 6vw;
  }
}


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1024px) {
  .luxury-showcase {
    grid-template-columns: 1fr;
    height: auto;
    min-height: unset;
  }

  .luxury-carousel,
  .luxury-featured {
    height: auto;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .products-filters {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}
