:root {
  --page-bg: #f6cfe0;
  --page-bg-deep: #efb9d4;
  --panel: rgba(255, 247, 251, 0.88);
  --panel-strong: #fffdfd;
  --text: #32224a;
  --muted: #6f5c7d;
  --accent: #ff6fb0;
  --accent-soft: #ffd9e8;
  --accent-violet: #cba0ff;
  --shadow: 0 24px 60px rgba(138, 76, 117, 0.18);
  --radius-xl: 38px;
  --radius-lg: 28px;
  --radius-md: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", "Poppins", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.6), transparent 28%),
    radial-gradient(circle at 75% 12%, rgba(255, 255, 255, 0.35), transparent 20%),
    linear-gradient(180deg, #f9dceb 0%, var(--page-bg) 42%, #f2c8de 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.22;
  pointer-events: none;
}

.site-header,
.featured-section,
.site-footer {
  position: relative;
  z-index: 1;
}

.navbar {
  min-height: 96px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: "Poppins", sans-serif;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #4a2b59;
  background: linear-gradient(145deg, #fff5fb, #f2c9dd);
  box-shadow: 0 14px 30px rgba(122, 54, 92, 0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

.nav-link {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  color: #4a3860;
  padding-inline: 0.9rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: #1f1634;
}

.search-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  width: min(100%, 250px);
  height: 56px;
  padding: 0 0.8rem 0 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 14px 32px rgba(134, 75, 112, 0.12);
}

.search-pill i {
  font-size: 1.2rem;
  color: var(--accent);
}

.search-pill .form-control {
  border: 0;
  background: transparent;
  font-size: 0.95rem;
  padding: 0;
}

.search-pill .btn-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(145deg, #34234e, #56376d);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-stage {
  padding: 0 0 2.5rem;
}

.hero-panel,
.feature-shell,
.footer-shell {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel {
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 1.5rem;
}

.hero-copy {
  height: 100%;
  padding: 0.5rem 0.25rem 0.5rem 0.25rem;
}

.eyebrow {
  font-family: "Poppins", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-copy h1,
.section-title,
.spotlight-content h3,
.poster-caption h3,
.album-body h2 {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 0.95;
  margin: 0.4rem 0 1rem;
}

.lead-text,
.spotlight-content p,
.poster-caption p,
.album-body p,
.footer-note {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.btn-primary-soft,
.btn-ghost-soft {
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.btn-primary-soft {
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, #ff73b0, #d95fc4);
  box-shadow: 0 14px 24px rgba(227, 98, 175, 0.28);
}

.btn-ghost-soft {
  border: 1px solid rgba(77, 45, 98, 0.16);
  background: rgba(255, 255, 255, 0.75);
  color: #3f2f57;
}

.hero-card-grid {
  align-items: stretch;
}

.album-card {
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  padding: 0.9rem;
  box-shadow: 0 18px 36px rgba(137, 73, 110, 0.13);
}

.album-art {
  position: relative;
  min-height: 250px;
  border-radius: 24px;
  overflow: hidden;
}

.card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-image-cover {
  object-position: center center;
}

.album-art::before,
.spotlight-thumb::before,
.poster-image::before,
.gallery-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(28, 16, 39, 0.09));
  mix-blend-mode: screen;
  z-index: 1;
  pointer-events: none;
}

.art-1 {
  background: linear-gradient(150deg, #2d2644 0%, #70577f 100%);
}

.art-2 {
  background: linear-gradient(150deg, #f8a9d2 0%, #ffdfef 100%);
}

.art-3 {
  background: linear-gradient(150deg, #8b88ff 0%, #d8cbff 100%);
}

.art-4 {
  background: linear-gradient(150deg, #f1a56d 0%, #ffe3c6 100%);
}

.mini-badge {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #1d1630;
  z-index: 2;
}

.floating-chip {
  position: absolute;
  right: 0.9rem;
  bottom: 0.9rem;
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #4a264a;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 24px rgba(124, 67, 104, 0.12);
  z-index: 2;
}

.floating-chip-alt {
  background: rgba(228, 212, 255, 0.85);
}

.album-body {
  padding: 0.95rem 0.45rem 0.3rem;
}

.album-body h2 {
  font-size: 1.65rem;
  margin-bottom: 0.1rem;
}

.album-body p {
  margin-bottom: 0;
}

.featured-section {
  padding: 0 0 2rem;
}

.feature-shell {
  border-radius: var(--radius-xl);
  padding: 1.25rem;
}

.section-title {
  font-size: clamp(1.8rem, 2.6vw, 2.5rem);
  margin: 0;
}

.filter-pills {
  align-items: center;
}

.filter-pill {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 224, 236, 0.88);
  color: #432f55;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.filter-pill.active {
  color: #fff;
  background: linear-gradient(145deg, #ff86bd, #d69cff);
}

.filter-pill:hover,
.filter-pill:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 24px rgba(128, 64, 100, 0.14);
  color: #2f2341;
}

.filter-pill.active:hover,
.filter-pill.active:focus-visible {
  color: #fff;
  background: linear-gradient(145deg, #ff7ab6, #c894ff);
}

.spotlight-card,
.feature-poster {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 16px 28px rgba(128, 64, 100, 0.12);
}

.spotlight-thumb,
.poster-image {
  position: relative;
  min-height: 210px;
}

.spotlight-one {
  background: linear-gradient(145deg, #f0b0da 0%, #e7ddff 100%);
}

.spotlight-content,
.poster-caption {
  padding: 1.1rem 1.1rem 1.2rem;
}

.spotlight-content h3,
.poster-caption h3 {
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  height: 100%;
  align-content: start;
}

.gallery-tile {
  position: relative;
  min-height: 198px;
  border-radius: 24px;
  overflow: hidden;
}

.gallery-tile .card-image {
  z-index: 0;
}

.tile-1 { background: linear-gradient(145deg, #f5d0ec, #fff0f8); }
.tile-2 { background: linear-gradient(145deg, #f2ddbf, #fff8ea); }
.tile-3 { background: linear-gradient(145deg, #c9d2ff, #eef0ff); }
.tile-4 { background: linear-gradient(145deg, #d2f3f0, #f0fffd); }
.tile-5 { background: linear-gradient(145deg, #f0d3e4, #fff5fb); }
.tile-6 { background: linear-gradient(145deg, #f0e1bf, #fff7d9); }
.tile-7 { background: linear-gradient(145deg, #cadfff, #eff7ff); }
.tile-8 { background: linear-gradient(145deg, #f2c4d2, #fff0f5); }
.tile-9 { background: linear-gradient(145deg, #ead2ff, #f8f1ff); }

.feature-poster {
  display: flex;
  flex-direction: column;
}

.poster-image {
  flex: 1;
  background: linear-gradient(145deg, #ffb16f, #ffd7b1 40%, #fff7e8 100%);
}

.site-footer {
  padding: 0 0 2rem;
}

.footer-shell {
  border-radius: var(--radius-xl);
  padding: 1rem 1.35rem;
}

.footer-socials a,
.footer-links a {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  color: #433053;
}

.footer-socials a {
  font-size: 1.5rem;
}

.footer-note {
  text-align: end;
  max-width: 360px;
}

@media (max-width: 991.98px) {
  .hero-panel,
  .feature-shell {
    border-radius: var(--radius-xl);
  }

  .search-pill {
    width: 100%;
  }

  .footer-note {
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .navbar {
    min-height: auto;
  }

  .brand-title {
    font-size: 1.3rem;
  }

  .hero-panel,
  .feature-shell,
  .footer-shell {
    padding: 1rem;
  }

  .album-art {
    min-height: 220px;
  }

  .gallery-tile {
    min-height: 170px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .brand-lockup {
    gap: 10px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-tile {
    min-height: 160px;
  }

  .filter-pills {
    gap: 0.5rem;
  }

  .filter-pill {
    min-width: 0;
    padding-inline: 0.9rem;
  }
}
/* =============================================
   CART NAV BUTTON
   ============================================= */
.cart-nav-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: linear-gradient(145deg, #ff73b0, #d95fc4);
  color: #fff;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(220, 90, 170, 0.32);
  flex-shrink: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.cart-nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(220, 90, 170, 0.4);
}

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ff2d6e;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: "Poppins", sans-serif;
}

/* =============================================
   ART HOVER OVERLAY (resolution picker)
   ============================================= */
.album-art {
  position: relative;
}

.art-hover-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(20, 10, 34, 0.52);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 1rem;
  opacity: 0;
  transition: opacity 200ms ease;
  border-radius: 24px;
}

.album-art:hover .art-hover-overlay {
  opacity: 1;
}

.res-btn {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 140ms ease;
}

.res-btn:active {
  transform: scale(0.97);
}

.res-free {
  background: #ffffff;
  color: #3a2454;
}

.res-2k {
  background: rgba(255, 209, 233, 0.9);
  color: #3a2454;
}

.res-4k {
  background: linear-gradient(145deg, #ff73b0, #d95fc4);
  color: #fff;
}

/* =============================================
   FEATURED LAYOUT (sidebar + content)
   ============================================= */
.featured-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  align-items: start;
}

/* =============================================
   HOTLIST SIDEBAR
   ============================================= */
.hotlist-sidebar {
  background: rgba(255, 247, 251, 0.72);
  border: 1px solid rgba(255, 200, 225, 0.5);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 1rem;
}

.hotlist-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(255, 200, 225, 0.35);
}

.hotlist-fire {
  font-size: 1.5rem;
  line-height: 1;
}

.hotlist-header .eyebrow {
  font-size: 0.65rem;
  line-height: 1;
}

.hotlist-subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
}

.hotlist-track-wrap {
  overflow: hidden;
  height: 436px; /* shows ~5.5 items */
}

.hotlist-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 360ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hotlist-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255, 200, 225, 0.2);
  cursor: pointer;
  transition: background 160ms ease;
}

.hotlist-item:last-child {
  border-bottom: none;
}

.hotlist-item:hover {
  background: rgba(255, 220, 240, 0.45);
}

.hotlist-thumb {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.hotlist-rank {
  position: absolute;
  bottom: 2px;
  right: 3px;
  font-size: 0.55rem;
  font-weight: 800;
  font-family: "Poppins", sans-serif;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  padding: 1px 4px;
  line-height: 1.4;
  z-index: 2;
}

.hotlist-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.hotlist-info strong {
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2f1f45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.hotlist-info span {
  font-family: "Poppins", sans-serif;
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotlist-arrows {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0.6rem;
  border-top: 1px solid rgba(255, 200, 225, 0.35);
}

.hotlist-arrow {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 224, 236, 0.9);
  color: #4a2b59;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms ease, transform 150ms ease;
}

.hotlist-arrow:hover {
  background: linear-gradient(145deg, #ff86bd, #d69cff);
  color: #fff;
  transform: scale(1.1);
}

/* =============================================
   CART PANEL
   ============================================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 10, 42, 0.3);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
  backdrop-filter: blur(3px);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 360px;
  height: 100vh;
  background: rgba(255, 247, 251, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: -12px 0 48px rgba(137, 73, 110, 0.2);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transition: right 340ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-panel.open {
  right: 0;
}

.cart-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.25rem 1rem;
  border-bottom: 1px solid rgba(255, 200, 225, 0.4);
}

.cart-panel-head h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #2f1f45;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-close-btn {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 220, 236, 0.8);
  color: #4a2b59;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms ease;
}

.cart-close-btn:hover {
  background: rgba(255, 150, 200, 0.5);
}

.cart-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  gap: 0.75rem;
}

.cart-empty-state i {
  font-size: 3rem;
  opacity: 0.4;
}

.cart-empty-state p {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  margin: 0;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 200, 225, 0.3);
}

.ci-thumb {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.ci-thumb-inner {
  width: 100%;
  height: 100%;
}

.ci-details {
  flex: 1;
  min-width: 0;
}

.ci-name {
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2f1f45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ci-res-label {
  font-family: "Poppins", sans-serif;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.ci-price {
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3a2454;
  white-space: nowrap;
}

.ci-remove {
  background: none;
  border: none;
  color: #c870a8;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
  border-radius: 50%;
  line-height: 1;
  transition: background 150ms ease;
}

.ci-remove:hover {
  background: rgba(255, 150, 200, 0.25);
}

.cart-panel-foot {
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 200, 225, 0.4);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  color: #2f1f45;
}

.cart-total-row strong {
  font-size: 1.05rem;
  font-weight: 800;
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.pg-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(24px);
  background: linear-gradient(145deg, #ff73b0, #d95fc4);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease, transform 260ms ease;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(220, 90, 170, 0.35);
}

.pg-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1199.98px) {
  .featured-layout {
    grid-template-columns: 180px 1fr;
  }
}

@media (max-width: 767.98px) {
  .featured-layout {
    grid-template-columns: 1fr;
  }

  .hotlist-sidebar {
    position: static;
  }

  .hotlist-track-wrap {
    height: auto;
    max-height: 260px;
    overflow-y: auto;
  }

  .hotlist-track {
    transition: none;
  }

  .cart-panel {
    width: 100%;
    right: -100%;
  }
}
