/* ============================================
   SPAZIO — Products Listing Page Styles
   Same design system as homepage
   ============================================ */

/* ---- Page Hero ---- */
.plp-hero {
  position: relative;
  background-color: var(--color-bg-warm);
  padding: 10rem 0 5rem 0;
  overflow: hidden;
  text-align: center;
}

.plp-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../back groud 3.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.plp-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(245, 239, 234, 0.88) 0%,
    rgba(245, 239, 234, 0.75) 50%,
    rgba(245, 239, 234, 0.95) 100%
  );
  z-index: 2;
}

.plp-hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  margin: 0 auto;
}

.plp-hero-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--color-brand-red);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.plp-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
}

.plp-hero-title em {
  font-style: italic;
}

.plp-hero-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Filter Bar ---- */
.plp-filters {
  background: var(--color-bg-base);
  padding: 2rem 0 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.plp-filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.plp-filter-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.plp-filter-tab {
  padding: 0.55rem 1.3rem;
  border-radius: 24px;
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  text-transform: capitalize;
}

.plp-filter-tab:hover {
  border-color: var(--color-text-dark);
  color: var(--color-text-dark);
}

.plp-filter-tab.active {
  background: var(--color-text-dark);
  color: #fff;
  border-color: var(--color-text-dark);
}

.plp-result-count {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.plp-result-count span {
  font-weight: 700;
  color: var(--color-text-dark);
}

/* ---- Products Grid ---- */
.plp-products {
  background: var(--color-bg-base);
  padding: 2.5rem 0 5rem 0;
}

.plp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ---- Product Card ---- */
.plp-card {
  text-decoration: none;
  color: inherit;
  border-radius: 20px;
  overflow: hidden;
  background: var(--color-bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
  display: flex;
  flex-direction: column;
}

.plp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
}

/* Card Image */
.plp-card-image {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #EAE6DF;
}

.plp-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.plp-card:hover .plp-card-image img {
  transform: scale(1.08);
}

/* Badge */
.plp-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--color-brand-red);
  color: #fff8f5;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 16px;
  z-index: 3;
}

.plp-badge-best {
  background: #2D8B4E;
}

.plp-badge-trend {
  background: #D4A747;
  color: #1a1a1a;
}

/* Quick action buttons */
.plp-card-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  z-index: 4;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.35s ease;
}

.plp-card:hover .plp-card-actions {
  opacity: 1;
  transform: translateX(0);
}

.plp-card-action-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  color: var(--color-text-dark);
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.plp-card-action-btn:hover {
  background: var(--color-brand-red);
  color: #fff;
  transform: scale(1.1);
}

.plp-card-action-btn.wishlisted {
  background: var(--color-brand-red);
  color: #fff;
}

/* Hover overlay with CTA */
.plp-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  display: flex;
  justify-content: center;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
  z-index: 3;
}

.plp-card:hover .plp-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.plp-card-view {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  color: var(--color-text-dark);
  padding: 0.6rem 1.4rem;
  border-radius: 24px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.plp-card:hover .plp-card-view:hover {
  background: var(--color-brand-red);
  color: #fff;
}

/* Card Info */
.plp-card-info {
  padding: 1.15rem 1.25rem 1.35rem;
}

.plp-card-category {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--color-brand-red);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.35rem;
}

.plp-card-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.plp-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plp-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.plp-card-current {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.plp-card-old {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}

.plp-card-rating {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-dark);
}

.plp-card-rating i {
  color: #D4A747;
  font-size: 0.7rem;
}

/* Hidden cards (filter animation) */
.plp-card.hidden {
  display: none;
}

/* ---- CTA Banner ---- */
.plp-cta {
  background: var(--color-bg-base);
  padding: 0 0 5rem 0;
}

.plp-cta-card {
  background: var(--color-brand-red);
  border-radius: 28px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.plp-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.plp-cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.plp-cta-content {
  position: relative;
  z-index: 2;
}

.plp-cta-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(255, 248, 245, 0.7);
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.plp-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  line-height: 1.3;
  color: #fff8f5;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.plp-cta-title em {
  font-style: italic;
}

.plp-cta .btn-explore {
  background: #fff8f5;
  color: var(--color-brand-red);
  margin: 0 auto;
}

.plp-cta .btn-explore:hover {
  background: #000;
  color: #fff;
}

.plp-cta .btn-explore-circle {
  border-color: rgba(194, 47, 25, 0.3);
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
  .plp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .plp-hero {
    padding: 8rem 0 3.5rem 0;
  }

  .plp-filters-bar {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .plp-cta-card {
    padding: 3rem 2rem;
  }
}

@media (max-width: 576px) {
  .plp-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .plp-hero {
    padding: 7rem 0 2.5rem 0;
  }

  .plp-hero-title {
    font-size: 2rem;
  }

  .plp-card-info {
    padding: 0.85rem 0.85rem 1rem;
  }

  .plp-card-name {
    font-size: 0.85rem;
  }

  .plp-card-current {
    font-size: 0.92rem;
  }

  .plp-card-badge {
    font-size: 0.5rem;
    padding: 0.3rem 0.6rem;
    top: 0.6rem;
    left: 0.6rem;
  }

  .plp-card-actions {
    top: 0.6rem;
    right: 0.6rem;
  }

  .plp-card-action-btn {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }

  .plp-filter-tabs {
    gap: 0.3rem;
  }

  .plp-filter-tab {
    padding: 0.45rem 0.85rem;
    font-size: 0.68rem;
  }

  .plp-cta-card {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
  }
}
