/* ==========================================
   JATIN JEWELLERS - Collections CSS
   Mobile First + Desktop - No Overlap
   ========================================== */

/* ===== PAGE HERO ===== */
.col-hero {
  background: linear-gradient(160deg, var(--dark) 0%, #0f0d07 100%);
  padding: 60px 0 48px;
  text-align: center;
  border-bottom: 1px solid rgba(201,168,76,0.12);
  margin-top: 82px; /* navbar height */
}

.col-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.col-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--gold-light);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.col-hero-sub {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ===== FILTER SECTION ===== */
.filter-section {
  padding: 0;
  position: sticky;
  top: 82px; /* below navbar */
  z-index: 80;
  background: rgba(10,8,2,0.97);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.filter-wrap {
  display: flex;
  gap: 0;
  justify-content: center;
}

.filter-btn {
  flex: 1;
  max-width: 200px;
  padding: 16px 10px;
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.filter-btn:hover {
  color: var(--gold-light);
  background: rgba(201,168,76,0.05);
}

.filter-btn.active {
  color: var(--gold-light);
  border-bottom-color: var(--gold);
  background: rgba(201,168,76,0.06);
  font-weight: 600;
}

/* ===== MAIN CONTENT ===== */
.col-main {
  background: var(--dark);
  min-height: 60vh;
  padding: 36px 0 100px;
}

/* ===== ALL IMAGES GRID ===== */
.all-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.all-img-card {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--dark2);
  cursor: pointer;
  border: 1px solid rgba(201,168,76,0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.all-img-card:hover {
  border-color: rgba(201,168,76,0.35);
  transform: scale(1.02);
}

.all-img-card:active {
  transform: scale(0.97);
}

.all-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.all-img-card .zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.all-img-card:hover .zoom-overlay {
  background: rgba(0,0,0,0.25);
}

.zoom-icon {
  color: white;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.all-img-card:hover .zoom-icon { opacity: 1; }

/* ===== IMAGE LABELS (All tab) ===== */

/* LEFT — Collection badge (Rajputi / Desi Fancy) */
.img-col-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 50px;
  line-height: 1.4;
  pointer-events: none;
  z-index: 2;
  /* subtle backdrop so text readable on any image */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.img-col-badge.rajputi {
  background: rgba(192, 57, 43, 0.82);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

.img-col-badge.desi {
  background: rgba(142, 68, 173, 0.82);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.15);
}

/* RIGHT — Category name label */
.img-cat-label {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 50px;
  background: rgba(0, 0, 0, 0.62);
  color: var(--gold-light, #E8C97A);
  border: 1px solid rgba(201,168,76,0.3);
  line-height: 1.4;
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  /* truncate long category names */
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* On very small cards (mobile 3-col grid) — shrink text slightly */
@media (max-width: 768px) {
  .img-col-badge,
  .img-cat-label {
    font-size: 0.5rem;
    padding: 2px 6px;
    top: 5px;
  }
  .img-col-badge  { left: 5px; }
  .img-cat-label  { right: 5px; max-width: 72px; }
}

@media (max-width: 380px) {
  .img-col-badge,
  .img-cat-label {
    font-size: 0.45rem;
    padding: 2px 5px;
    max-width: 60px;
  }
}

/* Placeholder */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.2;
  background: linear-gradient(135deg, var(--dark2), var(--dark3));
}

/* ===== CATEGORIES LIST ===== */
.cats-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 12px;
  overflow: hidden;
}

.cat-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--dark2);
  border-bottom: 1px solid rgba(201,168,76,0.08);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

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

.cat-list-item:hover,
.cat-list-item:active {
  background: rgba(201,168,76,0.07);
}

.cat-list-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cat-list-name-hi {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.cat-list-name-en {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.04em;
}

.cat-list-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.cat-list-count {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 500;
  min-width: 60px;
  text-align: right;
}

.cat-list-count.zero {
  color: rgba(255,255,255,0.25);
}

.cat-list-arrow {
  color: rgba(201,168,76,0.5);
  font-size: 1.1rem;
  transition: transform 0.15s ease;
}

.cat-list-item:hover .cat-list-arrow {
  transform: translateX(3px);
  color: var(--gold);
}

/* ===== EMPTY STATE ===== */
.col-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,0.3);
}

.col-empty-icon {
  font-size: 3rem;
  margin-bottom: 14px;
  opacity: 0.4;
}

.col-empty p {
  font-size: 0.86rem;
}

/* ===== LOADING ===== */
.col-loading {
  text-align: center;
  padding: 60px 20px;
}

.col-spinner {
  width: 28px;
  height: 28px;
  border: 2px solid rgba(201,168,76,0.15);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: colSpin 0.7s linear infinite;
  margin: 0 auto 12px;
}

@keyframes colSpin { to { transform: rotate(360deg); } }

.col-loading p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ===== SKELETON ===== */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.skeleton-card {
  aspect-ratio: 1/1;
  border-radius: 8px;
  background: linear-gradient(90deg, #1a1810 25%, #252010 50%, #1a1810 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

/* ===== CATEGORY DETAIL PAGE ===== */
.cat-detail-hero {
  background: linear-gradient(160deg, var(--dark) 0%, #0f0d07 100%);
  padding: 32px 0 28px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
  margin-top: 82px;
}

.cat-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 16px;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  padding: 0;
  letter-spacing: 0.04em;
  -webkit-tap-highlight-color: transparent;
}

.cat-back-btn:hover { color: var(--gold-light); }
.cat-back-btn:active { color: var(--gold); }

.cat-back-btn .back-arrow {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.cat-back-btn:hover .back-arrow {
  transform: translateX(-3px);
}

.cat-detail-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.cat-detail-tag.rajputi {
  background: rgba(192,57,43,0.14);
  color: #e74c3c;
  border: 1px solid rgba(192,57,43,0.28);
}

.cat-detail-tag.desi {
  background: rgba(142,68,173,0.14);
  color: #9b59b6;
  border: 1px solid rgba(142,68,173,0.28);
}

.cat-detail-name-hi {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 300;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.cat-detail-name-en {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.cat-detail-count {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
}

.cat-detail-count span { color: var(--gold); font-weight: 600; }

/* ===== IMAGES SECTION ===== */
.images-section {
  background: var(--dark);
  padding: 32px 0 100px;
  min-height: 40vh;
}

.images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.img-card {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--dark2);
  cursor: pointer;
  border: 1px solid rgba(201,168,76,0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.img-card:hover {
  border-color: rgba(201,168,76,0.35);
  transform: scale(1.02);
}

.img-card:active { transform: scale(0.96); }

.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.img-card .zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.img-card:hover .zoom-overlay { background: rgba(0,0,0,0.28); }
.img-card:hover .zoom-icon { opacity: 1; }

/* ===== IMAGES EMPTY ===== */
.images-empty {
  text-align: center;
  padding: 60px 20px;
  grid-column: 1/-1;
  color: rgba(255,255,255,0.3);
}

.images-empty-icon { font-size: 3rem; margin-bottom: 14px; opacity: 0.35; }

.images-empty h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: rgba(201,168,76,0.5);
  font-weight: 400;
  margin-bottom: 8px;
}

.images-empty p { font-size: 0.82rem; line-height: 1.6; }

/* ===== WHATSAPP SECTION ===== */
.wa-section {
  padding: 44px 0;
  background: #0a0800;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.1);
}

.wa-section h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  color: var(--gold-light);
  font-weight: 300;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.wa-section p {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 24px;
  line-height: 1.6;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.btn-wa-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  -webkit-tap-highlight-color: transparent;
}

.btn-wa-big:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

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

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 70px;
  -webkit-tap-highlight-color: transparent;
}

.lightbox.open {
  display: flex;
  animation: lbFadeIn 0.2s ease;
}

@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-inner {
  position: relative;
  max-width: min(90vw, 700px);
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  /* zoom cursor hint */
  cursor: zoom-in;
}

.lightbox-inner.zoomed { cursor: grab; }
.lightbox-inner.zoomed:active { cursor: grabbing; }

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
  display: block;
  /* zoom transition */
  transition: transform 0.2s ease, opacity 0.25s ease;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
}

/* ===== LIGHTBOX INFO BAR — category + collection ===== */
.lightbox-info {
  position: fixed;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(92vw, 500px);
  padding: 8px 14px;
  background: rgba(0,0,0,0.7);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lb-info-left,
.lb-info-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Collection badge inside lightbox */
.lb-col-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
}

.lb-col-badge.rajputi {
  background: rgba(192,57,43,0.85);
  color: #fff;
  border: 1px solid rgba(255,100,80,0.3);
}

.lb-col-badge.desi {
  background: rgba(142,68,173,0.85);
  color: #fff;
  border: 1px solid rgba(180,100,220,0.3);
}

/* Category name inside lightbox */
.lb-cat-name {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--gold-light, #E8C97A);
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  z-index: 10001;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-close:active { transform: scale(0.9); }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  z-index: 10001;
}

.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(201,168,76,0.18);
  border-color: rgba(201,168,76,0.4);
}

.lightbox-prev:active,
.lightbox-next:active { transform: translateY(-50%) scale(0.9); }

.lightbox-counter {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.12em;
  z-index: 10001;
  background: rgba(0,0,0,0.5);
  padding: 4px 14px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
}

/* Zoom hint tooltip */
.lb-zoom-hint {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.08em;
  z-index: 10001;
  pointer-events: none;
  animation: hintFade 3s ease forwards;
}

@keyframes hintFade {
  0%   { opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; }
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 900px) {
  .all-images-grid,
  .images-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  /* Hero */
  .col-hero {
    margin-top: 72px; /* mobile navbar height */
    padding: 40px 0 32px;
  }

  .col-hero-title { font-size: 1.8rem; }
  .col-hero-sub   { font-size: 0.82rem; }

  /* Filter */
  .filter-section {
    top: 72px;
  }

  .filter-btn {
    padding: 14px 8px;
    font-size: 0.72rem;
  }

  /* Main */
  .col-main { padding: 24px 0 90px; }

  /* Images grids */
  .all-images-grid,
  .images-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  /* Category detail */
  .cat-detail-hero {
    margin-top: 72px;
    padding: 24px 0 20px;
  }

  .cat-detail-name-hi { font-size: 2rem; }

  /* Images section */
  .images-section { padding: 20px 0 90px; }

  /* Lightbox */
  .lightbox { padding: 56px 8px 60px; }
  .lightbox-img { max-height: 70vh; border-radius: 6px; }
  .lightbox-prev { left: 6px; width: 38px; height: 38px; font-size: 1rem; }
  .lightbox-next { right: 6px; width: 38px; height: 38px; font-size: 1rem; }

  /* WA section */
  .wa-section { padding: 36px 0; }
  .btn-wa-big { padding: 13px 26px; font-size: 0.84rem; }
}

/* Small mobile */
@media (max-width: 380px) {
  .all-images-grid,
  .images-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }

  .filter-btn { font-size: 0.68rem; padding: 12px 4px; letter-spacing: 0.03em; }
  .cat-detail-name-hi { font-size: 1.7rem; }
}