/* ============================================================
   PBM JEWELLER'S — Collection Pages CSS
   ============================================================ */

/* Collection Page Banner */
.collection-banner {
  position: relative;
  height: 380px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark-bg);
}

.collection-banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.collection-banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.collection-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,8,5,0.5) 0%, rgba(13,8,5,0.85) 100%);
  z-index: 1;
}

.collection-banner-content {
  position: relative;
  z-index: 2;
  padding: 0 24px 56px;
  max-width: var(--container-max);
  margin: 0 auto;
  width: 100%;
}

.collection-banner-content .section-label { margin-bottom: 10px; }

.collection-banner-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--ivory-white);
  line-height: 1.1;
}

.collection-banner-content h1 em {
  font-style: italic;
  color: var(--gold-light);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.breadcrumb a,
.breadcrumb span {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.breadcrumb a {
  color: rgba(200,150,12,0.6);
  transition: var(--transition-fast);
}

.breadcrumb a:hover { color: var(--gold-primary); }

.breadcrumb .sep {
  color: rgba(200,150,12,0.3);
}

.breadcrumb .current { color: var(--gold-light); }

/* ============================================================
   FILTER + TOOLBAR
   ============================================================ */
.collection-toolbar {
  background: var(--ivory-white);
  border-bottom: 1px solid rgba(200,150,12,0.1);
  position: sticky;
  top: 73px;
  z-index: 100;
  padding: 0;
}

.toolbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 16px 20px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.filter-tab:hover { color: var(--gold-primary); }

.filter-tab.active {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
}

/* Sort + Search controls */
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 220px;
  padding: 9px 16px 9px 36px;
  border: 1px solid rgba(200,150,12,0.2);
  background: var(--ivory-light);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--gold-primary);
  outline: none;
  background: var(--ivory-white);
}

.search-box input::placeholder { color: var(--text-muted); font-style: italic; }

.search-box svg {
  position: absolute;
  left: 10px;
  width: 15px;
  height: 15px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

.sort-select {
  padding: 9px 32px 9px 14px;
  border: 1px solid rgba(200,150,12,0.2);
  background: var(--ivory-light);
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-radius: 2px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B7355' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: var(--transition-fast);
}

.sort-select:focus {
  border-color: var(--gold-primary);
  outline: none;
}

.price-range-filter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-input {
  width: 90px;
  padding: 9px 12px;
  border: 1px solid rgba(200,150,12,0.2);
  background: var(--ivory-light);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.price-input:focus {
  border-color: var(--gold-primary);
  outline: none;
}

.price-sep {
  font-family: var(--font-display);
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
}

.total-count {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
  padding: 0 12px;
  border-left: 1px solid rgba(200,150,12,0.15);
}

.total-count strong { color: var(--gold-primary); }

/* ============================================================
   PRODUCTS GRID
   ============================================================ */
.products-section {
  padding: 56px 0 80px;
  background: var(--ivory-light);
  min-height: 500px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Product Card */
.product-card {
  background: var(--ivory-white);
  border: 1px solid rgba(200,150,12,0.1);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: rgba(200,150,12,0.35);
  box-shadow: var(--shadow-card);
  transform: translateY(-4px);
}

.product-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--ivory-mid);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.product-id-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  background: rgba(13,8,5,0.75);
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  backdrop-filter: blur(4px);
}

.product-actions-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(13,8,5,0.85));
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  gap: 8px;
}

.product-card:hover .product-actions-overlay {
  transform: translateY(0);
}

.product-wa-btn {
  flex: 1;
  padding: 9px 14px;
  background: #25D366;
  color: white;
  font-family: var(--font-display);
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
  border: none;
  cursor: pointer;
}

.product-wa-btn:hover { background: #20B858; }

.product-wa-btn svg {
  width: 14px;
  height: 14px;
  fill: white;
  stroke: none;
}

.product-card-body {
  padding: 16px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 6px;
}

.product-name {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--maroon-deep);
  line-height: 1.3;
  margin-bottom: 6px;
  flex: 1;
}

.product-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-deep);
  letter-spacing: 0.03em;
}

.product-price-meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 2px;
}

/* No results */
.no-results {
  text-align: center;
  padding: 80px 24px;
  color: var(--text-muted);
  grid-column: 1 / -1;
}

.no-results svg {
  width: 48px;
  height: 48px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 16px;
  opacity: 0.4;
}

.no-results p {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--text-secondary);
}

/* Loading skeleton */
.product-skeleton {
  background: var(--ivory-white);
  border: 1px solid rgba(200,150,12,0.08);
  overflow: hidden;
}

.skeleton-img {
  aspect-ratio: 1 / 1;
  background: linear-gradient(90deg, var(--ivory-mid) 25%, var(--ivory-light) 50%, var(--ivory-mid) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease infinite;
}

.skeleton-body {
  padding: 16px 18px;
}

.skeleton-line {
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ivory-mid) 25%, var(--ivory-light) 50%, var(--ivory-mid) 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease infinite;
  margin-bottom: 10px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 70%; }

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   COLLECTIONS HUB PAGE
   ============================================================ */
.collections-hub {
  padding: var(--section-pad);
  background: var(--ivory-light);
}

.collections-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.hub-card {
  border: 1px solid rgba(200,150,12,0.15);
  overflow: hidden;
  background: var(--ivory-white);
  transition: var(--transition-smooth);
  display: block;
  text-decoration: none;
}

.hub-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(200,150,12,0.4);
}

.hub-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.hub-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hub-card:hover .hub-card-img img {
  transform: scale(1.06);
}

.hub-card-body {
  padding: 28px 24px 32px;
}

.hub-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.hub-card-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--maroon-deep);
  margin-bottom: 10px;
}

.hub-card-desc {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.hub-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-primary);
  border-bottom: 1px solid rgba(200,150,12,0.3);
  padding-bottom: 4px;
  transition: var(--transition-fast);
}

.hub-card-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.hub-card:hover .hub-card-btn {
  color: var(--gold-deep);
  border-color: var(--gold-primary);
}

.hub-card:hover .hub-card-btn svg {
  transform: translateX(4px);
}

/* ============================================================
   RESPONSIVE — COLLECTION PAGES
   ============================================================ */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .collections-hub-grid { gap: 24px; }
}

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .collections-hub-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .collection-banner { height: 280px; }
  .toolbar-inner { flex-direction: column; align-items: flex-start; padding: 12px 24px; }
  .toolbar-right { flex-wrap: wrap; }
  .search-box input { width: 180px; }
}

@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-card-body { padding: 12px 14px 16px; }
  .product-name { font-size: 0.95rem; }
  .filter-tabs { overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; }
  .filter-tab { padding: 12px 14px; }
  .toolbar-right { width: 100%; gap: 8px; }
  .search-box input { width: 150px; }
  .price-input { width: 75px; }
}

@media (max-width: 420px) {
  .products-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
}

/* ── FIX: Remove black dots from collection pages ─── */
.products-section ul,
.products-section li,
.filter-tabs li,
.collection-toolbar li {
  list-style: none !important;
  list-style-type: none !important;
}
.products-section *::before,
.products-section *::marker {
  display: none !important;
  content: none !important;
}
/* Kill any stray bullet from global styles */
.filter-tab::before,
.filter-tab::marker,
.product-card::before,
.product-card::marker {
  content: none !important;
  display: none !important;
}

/* ── Fix toolbar styling ─── */
.collection-toolbar {
  background: var(--dark-card);
  border-bottom: 1px solid rgba(200,150,12,0.2);
  border-top: none;
  position: sticky;
  top: 73px;
  z-index: 100;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.toolbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filter-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid rgba(200,150,12,0.12);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filter-tabs::-webkit-scrollbar { display: none; }

.filter-tab {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 18px;
  border: none;
  background: transparent;
  color: var(--text-silver, #C8C0B0);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.25s ease;
  position: relative;
}
.filter-tab:hover {
  color: var(--gold-bright);
  background: rgba(200,150,12,0.05);
}
.filter-tab.active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold-primary);
  background: rgba(200,150,12,0.08);
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  stroke: var(--gold-primary);
  fill: none; stroke-width: 2;
  pointer-events: none;
}
.search-wrap input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,150,12,0.2);
  color: var(--ivory-mid);
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transition: border-color 0.2s, background 0.2s;
}
.search-wrap input:focus {
  border-color: var(--gold-primary);
  background: rgba(200,150,12,0.06);
  outline: none;
}
.search-wrap input::placeholder { color: rgba(139,115,85,0.6); }

.sort-select, #SR {
  padding: 9px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,150,12,0.2);
  color: var(--ivory-mid);
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 2px;
  transition: border-color 0.2s;
  min-width: 130px;
}
.sort-select:focus, #SR:focus {
  border-color: var(--gold-primary);
  outline: none;
}

.total-count {
  font-family: var(--font-display);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  white-space: nowrap;
}
.total-count strong { color: var(--gold-primary); }

/* Products section bg fix */
.products-section {
  background: var(--dark-bg);
  padding: 48px 0 80px;
  min-height: 400px;
}

/* Banner description text */
.collection-banner-content p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(245,217,139,0.8);
  font-style: italic;
  margin-top: 10px;
}

/* Banner extra buttons */
.banner-extra-btns {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.banner-extra-btns .btn {
  padding: 10px 24px;
  font-size: 0.6rem;
}

/* No results */
.no-results {
  grid-column: 1/-1;
  padding: 80px 20px;
  text-align: center;
  color: var(--text-muted);
}
.no-results svg {
  width: 40px; height: 40px;
  stroke: rgba(200,150,12,0.3);
  fill: none; stroke-width: 1.5;
  margin: 0 auto 16px;
}
.no-results p {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

/* Product cards on dark bg */
.product-card-body {
  background: var(--dark-card);
  border-top: 1px solid rgba(200,150,12,0.1);
}
.product-name { color: var(--ivory-mid) !important; }
.product-desc { color: var(--text-silver, #C8C0B0) !important; }
.product-category { color: var(--gold-primary) !important; }
.product-price { color: var(--gold-bright) !important; }
.product-price-meta { color: var(--text-muted) !important; }

/* Skeleton on dark bg */
.product-skeleton { background: var(--dark-card); border: 1px solid rgba(200,150,12,0.08); }
.skeleton-img { background: rgba(255,255,255,0.06); }
.skeleton-line { background: rgba(255,255,255,0.06); }

/* Overflow fix */
.collection-banner, .collection-toolbar, .products-section {
  max-width: 100vw;
  overflow-x: hidden;
}
