/* ─────────────────────────────────────────────────────────────────
   Gold & Gold Jewellers — Shared Shop Styles
   Used by index.html (collections section) and collection.html.
   ───────────────────────────────────────────────────────────────── */

/* ── Collections Section (index.html) ─────────────────────────── */
#collections {
  position: relative; z-index: 15;
  contain: layout style;
  background:
    radial-gradient(ellipse 120% 60% at 100% 0%, rgba(255,250,235,.92) 0%, transparent 55%),
    linear-gradient(180deg, #f9f6f0 0%, #f5f2ea 40%, #f9f6f0 100%);
  background-color: #f9f6f0;
  padding: 7rem 8vw 5rem;
  border-top: 1px solid rgba(184,134,11,.18);
}
.coll-inner   { max-width: 1380px; margin: 0 auto; }
.coll-eyebrow {
  font-family: 'Montserrat', sans-serif; font-weight: 200;
  font-size: clamp(.55rem, 1.2vw, .72rem);
  color: rgba(184,134,11,.85);
  letter-spacing: .55em; text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.coll-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(2.6rem, 4.2vw, 4.8rem);
  color: #1a1008; line-height: 1.08; letter-spacing: .04em;
  margin-bottom: 4rem;
}
.coll-title em { font-style: italic; color: #b8860b; }
.coll-footer   { margin-top: 2rem; text-align: center; }

/* ── Category Block ────────────────────────────────────────────── */
.cat-block { margin-bottom: 5rem; }
.cat-hd {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 2rem; padding-bottom: 1rem;
  border-bottom: 1px solid rgba(184,134,11,.18);
}
.cat-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  color: #1a1008; letter-spacing: .05em;
}
.cat-count {
  font-family: 'Montserrat', sans-serif; font-weight: 200;
  font-size: .58rem; letter-spacing: .35em; text-transform: uppercase;
  color: rgba(26,16,8,.38);
}
.cat-all {
  font-family: 'Montserrat', sans-serif; font-weight: 200;
  font-size: .6rem; letter-spacing: .42em; text-transform: uppercase;
  color: rgba(184,134,11,.85); text-decoration: none;
  transition: color .25s;
}
.cat-all:hover { color: #1a1008; }

/* ── Product Grid ──────────────────────────────────────────────── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ── Product Card ──────────────────────────────────────────────── */
.pc {
  border: 1px solid rgba(184,134,11,.14);
  background: rgba(255,253,248,.94);
  display: flex; flex-direction: column;
  transition: box-shadow .3s, border-color .3s;
}
.pc:hover {
  box-shadow: 0 6px 32px rgba(184,134,11,.11);
  border-color: rgba(184,134,11,.38);
}

/* Image wrapper */
.pc-img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(26,16,8,.03);
}
.pc-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .55s ease;
}
.pc-img:hover img { transform: scale(1.07); }

/* Zoom overlay */
.pc-zoom {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,16,8,0);
  transition: background .3s;
  pointer-events: none;
}
.pc-zoom::before {
  content: '+';
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; line-height: 1;
  color: rgba(255,255,255,0);
  transition: color .3s;
}
.pc-img:hover .pc-zoom              { background: rgba(26,16,8,.25); }
.pc-img:hover .pc-zoom::before      { color: rgba(255,255,255,.92); }

/* Placeholder when image file missing — shows expected filename so you know what to add */
.pc-no-img                          { cursor: default; }
.pc-no-img img, .pc-no-img .pc-zoom { display: none; }
.pc-no-img::after {
  content: '◇  ' attr(data-missing);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  font-family: 'Montserrat', sans-serif; font-weight: 200;
  font-size: .62rem; letter-spacing: .1em;
  color: rgba(184,134,11,.45);
  text-align: center; padding: 1rem;
}

/* Card text + CTA */
.pc-info {
  padding: 1.1rem 1.2rem 1.4rem;
  flex: 1; display: flex; flex-direction: column;
}
.pc-name {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  color: #1a1008; letter-spacing: .05em;
  margin-bottom: .4rem;
}
.pc-desc {
  font-family: 'Montserrat', sans-serif; font-weight: 200;
  font-size: .6rem; letter-spacing: .06em;
  color: rgba(26,16,8,.42); line-height: 1.75;
  margin-bottom: 1rem; flex: 1;
}
.pc-wa {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .6rem 1rem; align-self: flex-start;
  font-family: 'Montserrat', sans-serif; font-weight: 300;
  font-size: .58rem; letter-spacing: .3em; text-transform: uppercase;
  color: #1a1008;
  border: 1px solid rgba(26,16,8,.22);
  text-decoration: none;
  transition: background .25s, border-color .25s;
}
.pc-wa:hover { background: rgba(26,16,8,.07); border-color: rgba(26,16,8,.6); }
.pc-wa svg   { width: 14px; height: 14px; fill: #25d366; flex-shrink: 0; }

/* ── Lightbox ──────────────────────────────────────────────────── */
#lightbox {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(8,6,3,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  padding: 1.5rem;
}
#lightbox.active { opacity: 1; pointer-events: all; }

.lb-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.72);
  width: 44px; height: 44px;
  font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lb-close:hover { border-color: rgba(255,255,255,.85); color: #fff; }

.lb-content {
  display: flex; gap: 2.5rem; align-items: flex-start;
  max-width: min(920px, 95vw);
  max-height: 90vh;
}
#lb-img {
  max-height: 82vh; max-width: 58%;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.07);
}
.lb-meta {
  display: flex; flex-direction: column; gap: 1.3rem;
  padding-top: .5rem;
}
#lb-caption {
  font-family: 'Cormorant Garamond', serif; font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  color: rgba(255,255,255,.9); letter-spacing: .05em;
}
#lb-desc {
  font-family: 'Montserrat', sans-serif; font-weight: 200;
  font-size: .65rem; letter-spacing: .08em;
  color: rgba(255,255,255,.45); line-height: 1.8;
}
.lb-wa-btn {
  display: inline-flex; align-items: center; gap: .65rem;
  padding: .82rem 1.6rem; align-self: flex-start;
  font-family: 'Montserrat', sans-serif; font-weight: 300;
  font-size: .65rem; letter-spacing: .38em; text-transform: uppercase;
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.28);
  text-decoration: none;
  transition: background .25s, border-color .25s, color .25s;
}
.lb-wa-btn:hover {
  background: rgba(37,211,102,.12);
  border-color: rgba(37,211,102,.7);
  color: #fff;
}
.lb-wa-btn svg { width: 18px; height: 18px; fill: #25d366; flex-shrink: 0; }

/* ── Collection page — category sticky nav ─────────────────────── */
.cat-nav-sticky {
  position: sticky; top: 0; z-index: 40;
  background: rgba(249,246,240,.97); /* solid fallback for browsers without backdrop-filter */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184,134,11,.18);
  display: flex; gap: 0; overflow-x: auto;
  scrollbar-width: none;
  padding: 0 8vw;
}
.cat-nav-sticky::-webkit-scrollbar { display: none; }
.cat-tab {
  font-family: 'Montserrat', sans-serif; font-weight: 200;
  font-size: .62rem; letter-spacing: .42em; text-transform: uppercase;
  color: rgba(26,16,8,.45); text-decoration: none;
  padding: 1.1rem 1.6rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .25s, border-color .25s;
}
.cat-tab:hover  { color: rgba(26,16,8,.85); }
.cat-tab.active {
  color: #b8860b;
  border-bottom-color: #b8860b;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
}
@media (max-width: 360px) {
  .cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .lb-content { flex-direction: column; overflow-y: auto; }
  #lb-img     { max-width: 100%; max-height: 52vh; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-img img           { transition: none; }
  .pc-img:hover img     { transform: none; }
  .pc-zoom              { transition: none; }
  .pc-img:hover .pc-zoom { background: rgba(26,16,8,.15); }
  #lightbox             { transition: none; }
  .pc, .pc-wa, .cat-tab { transition: none; }
}
