/*
  BIG ZAYN — gallery.css
  Kaftan gallery grid page
*/

/* =============================================
   GALLERY PAGE HEADER
   ============================================= */
.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 180px 48px 28px;
}

.gallery-header__label {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--red);
  font-weight: 300;
  display: block;
  margin-bottom: 8px;
}

.gallery-header__title {
  font-family: var(--font-display);
  font-size: 72px;
  letter-spacing: 0.06em;
  color: var(--cream);
  font-weight: normal;
  line-height: 1;
}

.gallery-header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 8px;
}

.gallery-header__count {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: rgba(218, 211, 190, 0.35);
  font-weight: 300;
}

.gallery-header__filters {
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-btn {
  background: none;
  border: 1px solid rgba(218, 211, 190, 0.15);
  color: rgba(218, 211, 190, 0.35);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 6px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--cream);
  color: var(--cream);
}

.gallery-divider {
  width: calc(100% - 96px);
  margin: 0 48px 48px;
  height: 1px;
  background: rgba(218, 211, 190, 0.12);
}

/* =============================================
   GALLERY GRID
   ============================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 0 48px 120px;
}

/* GALLERY ITEM */
.gallery-item {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  position: relative;
}

/* IMAGE WRAP */
.gallery-item__image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #1c3326;
}

.gallery-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-item__img--out {
  opacity: 1;
}

.gallery-item:hover .gallery-item__img--out {
  opacity: 0;
}

.gallery-item:hover .gallery-item__img--in {
  opacity: 1;
}

/* NUMBER TAG */
.gallery-item__num {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--red);
  z-index: 2;
}

/* CTA ON HOVER */
.gallery-item__cta {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cream);
  z-index: 2;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item:hover .gallery-item__cta {
  opacity: 1;
  transform: translateY(0);
}

/* INFO BELOW IMAGE */
.gallery-item__info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 4px 24px;
  border-bottom: 1px solid rgba(218, 211, 190, 0.08);
}

.gallery-item__name {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--cream);
  margin-bottom: 4px;
  font-weight: 400;
  transition: color 0.2s;
}

.gallery-item:hover .gallery-item__name {
  color: var(--red);
}

.gallery-item__sku {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(218, 211, 190, 0.3);
  font-weight: 300;
}

.gallery-item__price {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--cream);
  font-weight: 300;
  white-space: nowrap;
  padding-top: 2px;
}

/* =============================================
   COLLECTION INTRO (bottom of the page, written in server/seo.js)
   ============================================= */
.gallery-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 96px;
  text-align: center;
}
.gallery-intro__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 14px;
}
.gallery-intro p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  font-weight: 300;
  color: rgba(218, 211, 190, 0.6);
}

/* =============================================
   EMPTY STATE
   ============================================= */
.gallery-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 20px;
  gap: 12px;
  text-align: center;
}

.gallery-empty p {
  font-family: var(--font-display);
  font-size: clamp(24px, 8vw, 48px);
  letter-spacing: 0.08em;
  white-space: nowrap;   /* keep "COMING SOON" on one line; the size shrinks to fit */
  color: rgba(218, 211, 190, 0.2);
}

.gallery-empty span {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: rgba(218, 211, 190, 0.2);
  font-weight: 300;
  margin-right: -0.22em; /* letter-spacing trails the last letter; this re-centres it */
}

.gallery-empty .gallery-empty__form {
  flex: none;            /* the footer style's 420px basis would become height in this column */
  width: 100%;
  max-width: 420px;
  margin-top: 28px;
}

.gallery-empty__note {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  color: rgba(218, 211, 190, 0.6);
  font-weight: 300;
  text-align: center;
}

.gallery-empty__note.is-error { color: var(--red, #eb3309); }

/* =============================================
   QUICK ADD BAG BUTTON
   ============================================= */
.gallery-item__quickadd {
  background: none;
  border: none;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0;
  margin-top: 8px;
  transition: color 0.2s;
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.18em;
}

.gallery-item__quickadd svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
}

.gallery-item__quickadd:hover {
  color: var(--red);
}

.gallery-item__quickadd.added {
  color: var(--red);
}

/* Dual currency display */
.price-usd {
  font-size: 0.8em;
  font-weight: 300;
  color: rgba(218,211,190,0.45);
  letter-spacing: 0.04em;
}
