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

/* ===== PAGE HERO ===== */
.col-hero {
  background: linear-gradient(160deg, var(--saffron-pale) 0%, #FFF0DC 100%);
  padding: 60px 0 48px;
  text-align: center;
  border-bottom: 1px solid rgba(232,101,10,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.1em;
  text-transform: uppercase;
  color: var(--saffron);
  border: 1px solid rgba(232,101,10,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(--dark);
  margin-bottom: 10px;
  letter-spacing: 0.03em;
  line-height: 1.1;
}

.col-hero-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  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(255,255,255,0.97);
  border-bottom: 2px solid rgba(232,101,10,0.15);
  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: var(--text-muted);
  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(--dark);
  background: rgba(232,101,10,0.05);
}

.filter-btn.active {
  color: var(--dark);
  border-bottom-color: var(--saffron);
  background: rgba(232,101,10,0.06);
  font-weight: 600;
}

/* ===== MAIN CONTENT ===== */
.col-main {
  background: var(--white);
  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(--white);
  cursor: pointer;
  border: 1px solid rgba(232,101,10,0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.all-img-card:hover {
  border-color: rgba(232,101,10,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;
  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(232,101,10,0.3);
  line-height: 1.4;
  pointer-events: none;
  z-index: 2;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  max-width: 90px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@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, #FFF0DC, #FFE0C0);
}

/* ===== CATEGORIES LIST (purana — backup) ===== */
.cats-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(232,101,10,0.12);
  border-radius: 12px;
  overflow: hidden;
}

.cat-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--white);
  border-bottom: 1px solid rgba(232,101,10,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(232,101,10,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(--dark);
  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(--saffron);
  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(232,101,10,0.5);
  font-size: 1.1rem;
  transition: transform 0.15s ease;
}

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

/* ===== CATEGORY CARDS GRID (naya) ===== */
.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 32px 0 48px;
}

@media (max-width: 1100px) {
  .cat-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .cat-cards-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;                               /* ← gap thoda kam karo */
    padding: 20px 0 40px;
  }
}

.cat-card {
  display: block;
  text-decoration: none;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}

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

.cat-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  background: #f5ede0;
  overflow: hidden;
}

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

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

.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.38) 100%);
  pointer-events: none;
}

.cat-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  color: var(--gold, #C9A84C);
  background: #fdf5e8;
}

.cat-card-info {
  padding: 12px 14px 14px;
  background: #fff;
}

.cat-card-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d1a0e;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-card-count {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--saffron, #E8650A);
  font-weight: 500;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .cat-card {
    border-radius: 12px;
  }
  .cat-card-info {
    padding: 10px 10px 12px;
  }
  .cat-card-name {
    font-size: 0.9rem;
  }
  .cat-card-count {
    font-size: 0.68rem;
  }
}

/* ===== EMPTY STATE ===== */
.col-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.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(232,101,10,0.15);
  border-top-color: var(--saffron);
  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: var(--text-muted);
}

/* ===== 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, #f0e8dc 25%, #ffe4c4 50%, #f0e8dc 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(--saffron-pale) 0%, #FFF0DC 100%);
  padding: 32px 0 28px;
  border-bottom: 2px solid rgba(232,101,10,0.15);
  margin-top: 82px;
}

.cat-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  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(--saffron-dark); }
.cat-back-btn:active { color: var(--saffron); }

.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(--dark);
  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: var(--text-muted);
  letter-spacing: 0.08em;
}

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

/* ===== IMAGES SECTION ===== */
.images-section {
  background: var(--cream);
  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(--white);
  cursor: pointer;
  border: 1px solid rgba(232,101,10,0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.img-card:hover {
  border-color: rgba(232,101,10,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: var(--text-muted);
}

.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(232,101,10,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: var(--saffron-pale);
  text-align: center;
  border-top: 1px solid rgba(232,101,10,0.15);
}

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

.wa-section p {
  font-size: 0.84rem;
  color: var(--text-muted);
  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;
  width: min(90vw, 700px);
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 8px;
  cursor: zoom-in;
  touch-action: none;
}

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

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

.lightbox-img.zooming {
  transition: none;
}

/* ===== LIGHTBOX INFO BAR ===== */
.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(232,101,10,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;
}

.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);
}

.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(232,101,10,0.18);
  border-color: rgba(232,101,10,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: var(--text-muted);
  letter-spacing: 0.12em;
  z-index: 10001;
  background: rgba(0,0,0,0.5);
  padding: 4px 14px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
}

.lb-zoom-hint {
  position: fixed;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--text-muted);
  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) {
  .col-hero {
    margin-top: 72px;
    padding: 40px 0 32px;
  }

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

  .filter-section { top: 72px; }

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

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

  .all-images-grid,
.images-grid {
  grid-template-columns: repeat(3, 1fr);  /* ← yeh karo */
  gap: 8px;
}

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

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

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

  .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 { 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; }
}

/* ============================================================
   COLLECTIONS PAGE — PREMIUM ANIMATIONS
   1. Hero staggered entrance
   2. Filter button ripple + card transition
   3. Category cards wave + border glow (live)
   4. Scroll to top button
   ============================================================ */

/* ── 1. HERO STAGGERED ENTRANCE ── */
.col-hero-badge {
  opacity: 0;
  animation: colHeroSlideDown 0.6s cubic-bezier(0.22,1,0.36,1) 0.15s forwards;
}
.col-hero-title {
  opacity: 0;
  animation: colHeroSlideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.35s forwards;
}
.col-hero-sub {
  opacity: 0;
  animation: colHeroSlideUp 0.7s cubic-bezier(0.22,1,0.36,1) 0.52s forwards;
}

@keyframes colHeroSlideDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes colHeroSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ── 2. FILTER BUTTON — active pill animation ── */
.filter-btn {
  position: relative;
  overflow: hidden;
  transition: color 0.2s ease, background 0.2s ease;
}

/* Ripple on click */
.filter-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(232,101,10,0.12);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  border-radius: 0;
}
.filter-btn.active::after {
  transform: scaleX(1);
}

/* Active state — pill style */
.filter-btn.active {
  color: var(--saffron);
  border-bottom-color: var(--saffron);
  background: rgba(232,101,10,0.07);
  font-weight: 600;
}

/* ── CARD GRID — fade+slide transition on filter ── */
.cat-cards-grid,
.all-images-grid {
  transition: opacity 0.2s ease;
}
.col-content-transitioning .cat-cards-grid,
.col-content-transitioning .all-images-grid {
  opacity: 0;
  transform: translateY(8px);
}

/* ── 3. CATEGORY CARDS — wave + border glow (live) ── */
@keyframes catWaveLive {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes catBorderGlow {
  0%,100% {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  }
  50% {
    box-shadow:
      0 6px 24px rgba(232,101,10,0.20),
      0 0 0 2px rgba(232,101,10,0.25);
  }
}

/* nth-child delays — staggered wave feel */
.cat-card:nth-child(1)  { animation: catWaveLive 2.6s ease-in-out 0s    infinite, catBorderGlow 2.6s ease-in-out 0s    infinite; }
.cat-card:nth-child(2)  { animation: catWaveLive 2.6s ease-in-out 0.55s  infinite, catBorderGlow 2.6s ease-in-out 0.55s  infinite; }
.cat-card:nth-child(3)  { animation: catWaveLive 2.6s ease-in-out 1.1s   infinite, catBorderGlow 2.6s ease-in-out 1.1s   infinite; }
.cat-card:nth-child(4)  { animation: catWaveLive 2.6s ease-in-out 1.65s  infinite, catBorderGlow 2.6s ease-in-out 1.65s  infinite; }
.cat-card:nth-child(5)  { animation: catWaveLive 2.6s ease-in-out 2.2s   infinite, catBorderGlow 2.6s ease-in-out 2.2s   infinite; }
.cat-card:nth-child(6)  { animation: catWaveLive 2.6s ease-in-out 0.3s   infinite, catBorderGlow 2.6s ease-in-out 0.3s   infinite; }
.cat-card:nth-child(7)  { animation: catWaveLive 2.6s ease-in-out 0.85s  infinite, catBorderGlow 2.6s ease-in-out 0.85s  infinite; }
.cat-card:nth-child(8)  { animation: catWaveLive 2.6s ease-in-out 1.4s   infinite, catBorderGlow 2.6s ease-in-out 1.4s   infinite; }
.cat-card:nth-child(n+9){ animation: catWaveLive 2.6s ease-in-out 0.7s   infinite, catBorderGlow 2.6s ease-in-out 0.7s   infinite; }

/* Hover pe wave band — stable rahe */
.cat-card:hover {
  animation: none !important;
  transform: translateY(-4px);
  box-shadow:
    0 12px 32px rgba(232,101,10,0.22),
    0 0 0 2px rgba(232,101,10,0.45);
}


/* ── 4. SCROLL TO TOP BUTTON ── */
#scroll-top-btn {
  position: fixed;
  bottom: 90px; /* bottom nav ke upar */
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--saffron);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(232,101,10,0.35);
  z-index: 500;
  opacity: 0;
  transform: translateY(16px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#scroll-top-btn:hover {
  background: var(--saffron-dark, #c9500a);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 6px 20px rgba(232,101,10,0.45);
}
#scroll-top-btn:active {
  transform: scale(0.94);
}
/* Pulse ring */
#scroll-top-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(232,101,10,0.4);
  animation: scrollBtnPulse 2s ease-in-out infinite;
}
@keyframes scrollBtnPulse {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 0;   transform: scale(1.3); }
}

/* Desktop — bottom nav nahi hoti */
@media (min-width: 769px) {
  #scroll-top-btn { bottom: 28px; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .col-hero-badge,
  .col-hero-title,
  .col-hero-sub {
    animation: none !important;
    opacity: 1 !important;
  }
  .cat-card { animation: none !important; }
  #scroll-top-btn::before { animation: none !important; }
}



/* ============================================================
   FILTER BUTTONS — Premium Gold Style (Site Theme Match)
   ============================================================ */

.filter-section {
  background: rgba(255, 248, 240, 0.98) !important;
  border-bottom: 1.5px solid rgba(232, 101, 10, 0.18) !important;
  border-top: 1px solid rgba(232, 101, 10, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(232, 101, 10, 0.08);
}

.filter-wrap {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 12px 16px;
}

.filter-btn {
  flex: 0 0 auto;
  max-width: none;
  padding: 9px 24px;
  border: 1.5px solid rgba(232, 101, 10, 0.35);
  border-bottom: 1.5px solid rgba(232, 101, 10, 0.35) !important;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.15s ease, box-shadow 0.22s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  background: rgba(232, 101, 10, 0.06);
  box-shadow: 0 2px 10px rgba(232, 101, 10, 0.12);
}

.filter-btn:active {
  transform: scale(0.93);
}

/* ACTIVE — saffron orange pill */
.filter-btn.active {
  background: linear-gradient(135deg, #E8650A 0%, #F5893A 50%, #E8650A 100%);
  border-color: transparent;
  color: #fff;
  font-weight: 700;
  box-shadow:
    0 0 14px rgba(232, 101, 10, 0.40),
    0 4px 14px rgba(232, 101, 10, 0.30);
  transform: scale(1.04);
}

.filter-btn.active:hover {
  box-shadow:
    0 0 20px rgba(232, 101, 10, 0.55),
    0 6px 18px rgba(232, 101, 10, 0.35);
}

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

/* Ripple */
.filter-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  opacity: 0;
}
.filter-btn:active::after {
  transform: scale(1.2);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .filter-wrap {
    gap: 8px;
    padding: 10px 14px;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .filter-wrap::-webkit-scrollbar { display: none; }
  .filter-btn {
    padding: 8px 18px;
    font-size: 0.68rem;
    flex-shrink: 0;
  }
}

@media (max-width: 380px) {
  .filter-btn {
    padding: 7px 14px;
    font-size: 0.64rem;
  }
}

/* ── FIX: Teeno buttons ek line mein fit hon — no scroll ── */
.filter-wrap {
  justify-content: center !important;
  overflow-x: visible !important;
  flex-wrap: nowrap;
  padding: 10px 10px !important;
  gap: 6px !important;
}

.filter-btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 9px 10px !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.06em !important;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 380px) {
  .filter-btn {
    font-size: 0.58rem !important;
    padding: 8px 6px !important;
    letter-spacing: 0.04em !important;
  }
}