/* FIVES PLP — premium fashion listing (Myntra / Nykaa inspired) */
.plp {
  background: #fff;
  border-top: 1px solid #eaeaec;
  min-height: 60vh;
}

.plp-shell {
  display: block;
  width: 100%;
}

.plp-body {
  display: block;
}

/* —— Desktop: filter rail scrolls independently; products scroll with page —— */
@media (min-width: 1024px) {
  .plp-body {
    display: grid !important;
    grid-template-columns: 252px minmax(0, 1fr);
    column-gap: 32px;
    align-items: start;
  }

  .plp-filters-rail {
    position: sticky;
    top: 76px;
    z-index: 20;
    width: 252px;
    height: calc(100vh - 84px);
    max-height: calc(100vh - 84px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 20px 18px 32px 0;
    border-right: 1px solid #eaeaec;
    background: #fff;
    scrollbar-width: thin;
    scrollbar-color: #cfcfd4 transparent;
  }

  .plp-filters-rail::-webkit-scrollbar {
    width: 5px;
  }
  .plp-filters-rail::-webkit-scrollbar-thumb {
    background: #d4d5d9;
    border-radius: 8px;
  }

  .plp-results {
    min-width: 0;
    padding: 20px 0 48px;
  }
}

@media (max-width: 1023px) {
  .plp-filters-rail {
    display: none !important;
  }
  .plp-results {
    padding: 12px 0 40px;
  }
}

/* Filters typography */
.plp-filters .plp-filter-title,
.plp-filters > div > p:first-child {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #282c3f;
}

.plp-filters label:hover {
  color: #9e1b4a;
}

/* Product grid — 4–5 across on desktop (fashion PLP density) */
.plp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
}

@media (min-width: 768px) {
  .plp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 14px;
  }
}

@media (min-width: 1024px) {
  .plp-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 16px;
  }
}

@media (min-width: 1400px) {
  .plp-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 18px;
  }
}

/* Premium product card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(40, 44, 63, 0.12);
}

.product-card .plp-media {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f5f3 0%, #efece8 100%);
  aspect-ratio: 3 / 4;
}

.product-card .plp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .plp-media img {
  transform: scale(1.06);
}

.product-card .plp-wishlist-bar {
  border-top: 1px solid #eaeaec;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(8px);
  transition: 0.25s ease;
  pointer-events: none;
}

.product-card:hover .plp-wishlist-bar {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.product-card .plp-meta {
  padding: 12px 4px 4px;
}

.product-card .plp-brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #282c3f;
  text-transform: uppercase;
}

.product-card .plp-name {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.35;
  color: #94969f;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card .plp-price-row {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.product-card .plp-price-now {
  font-size: 15px;
  font-weight: 800;
  color: #282c3f;
}

.product-card .plp-price-was {
  font-size: 12px;
  color: #94969f;
  text-decoration: line-through;
}

.product-discount-off {
  color: #ff905a;
  font-size: 12px;
  font-weight: 700;
}

.product-card .plp-rating {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.plp-title {
  font-family: var(--font-display, Syne, sans-serif);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #282c3f;
}

.plp-title-count {
  font-size: 0.95rem;
  font-weight: 600;
  color: #94969f;
}

.plp-sort-btn {
  display: flex;
  min-width: 230px;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid #d4d5d9;
  background: #fff;
  padding: 0.55rem 0.85rem;
  font-size: 13px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s ease;
}
.plp-sort-btn:hover {
  border-color: #9e1b4a;
}

.plp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #d4d5d9;
  background: #fff;
  padding: 0.3rem 0.7rem;
  font-size: 12px;
  font-weight: 600;
  color: #282c3f;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.plp-chip:hover {
  border-color: #9e1b4a;
  color: #9e1b4a;
}
