/* Blinggit public desktop home — Surabi-inspired jewellery storefront */

:root {
  --ink: #0d0d0f;
  --ink-2: #1a1a1f;
  --paper: #ffffff;
  --mist: #f7f5f1;
  --sand: #efeae2;
  --muted: #6b6b72;
  --line: #e6e2db;
  --gold: #c6a15b;
  --gold-dark: #9a7a3f;
  --blue: #1e4d8c;
  --container: min(1280px, 94vw);
  --header-h: 4.5rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.bg-desk {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

body.bg-desk h1,
body.bg-desk h2,
body.bg-desk h3 {
  font-family: "Playfair Display", Georgia, serif;
  margin: 0;
  line-height: 1.15;
  font-weight: 600;
}

body.bg-desk p { margin: 0; line-height: 1.65; color: var(--muted); }
body.bg-desk a { color: inherit; text-decoration: none; }
body.bg-desk img { max-width: 100%; display: block; }
.bg-container { width: var(--container); margin-inline: auto; }

/* Announcement */
.bg-announce {
  background: var(--ink);
  color: #f5f0e6;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.bg-announce__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 2rem;
  padding: 0.65rem 1rem;
  text-align: center;
}
.bg-announce span { opacity: 0.92; }
.bg-announce strong { color: var(--gold); font-weight: 600; }

/* Header */
.bg-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.bg-header__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  gap: 1rem;
}
.bg-header__brand {
  display: flex;
  justify-content: center;
  align-items: center;
}
.bg-header__brand img {
  height: 42px;
  width: auto;
}
.bg-header__brand-fallback {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.bg-header__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}
.bg-header__link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.bg-header__link:hover { color: var(--gold-dark); }

.bg-account-menu {
  position: relative;
}
.bg-account-menu__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 11rem;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.bg-account-menu__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bg-account-menu__caret {
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  flex-shrink: 0;
  opacity: 0.7;
  transition: transform .15s ease;
}
.bg-account-menu.is-open .bg-account-menu__caret {
  transform: rotate(225deg) translateY(-1px);
}
.bg-account-menu__panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  z-index: 40;
  min-width: 11.5rem;
  padding: 0.45rem 0;
  background: #fff;
  border: 1px solid var(--line, #e5e0d6);
  box-shadow: 0 12px 28px rgba(13, 13, 15, 0.12);
}
.bg-account-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bg-account-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-2, #4a4650);
  text-decoration: none;
}
.bg-account-menu__list a:hover,
.bg-account-menu__list a.is-active {
  color: var(--gold-dark, #a8843f);
  background: rgba(198, 161, 91, 0.08);
}
.bg-account-menu__divider {
  height: 1px;
  margin: 0.35rem 0;
  background: var(--line, #e5e0d6);
}
.bg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.35rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.bg-btn--solid {
  background: var(--ink);
  color: #fff;
}
.bg-btn--solid:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}
.bg-btn--ghost {
  background: transparent;
  color: var(--ink);
}
.bg-btn--ghost:hover {
  background: var(--ink);
  color: #fff;
}
.bg-btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.bg-btn--gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #fff;
}

/* Category nav */
.bg-nav {
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.bg-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0 0.55rem;
}
.bg-nav__list a {
  display: block;
  padding: 0.55rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.bg-nav__list a:hover { color: var(--gold-dark); }

/* Hero */
.bg-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  min-height: min(72vh, 640px);
  overflow: hidden;
}
.bg-hero__slide {
  display: none;
  position: relative;
  min-height: min(72vh, 640px);
}
.bg-hero__slide.is-active { display: block; }
.bg-hero__media {
  position: absolute;
  inset: 0;
}
.bg-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}
.bg-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 13, 15, 0.82) 0%, rgba(13, 13, 15, 0.35) 55%, rgba(13, 13, 15, 0.2) 100%),
    linear-gradient(0deg, rgba(13, 13, 15, 0.55), transparent 45%);
}
.bg-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  min-height: min(72vh, 640px);
  padding: 4.5rem 0 3.5rem;
  max-width: 34rem;
}
.bg-hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.bg-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  color: #fff;
  font-weight: 600;
}
.bg-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  max-width: 28rem;
}
.bg-hero__dots {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 2;
}
.bg-hero__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.bg-hero__dot.is-active { background: var(--gold); }

/* Trust strip */
.bg-trust {
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.bg-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.35rem 0;
}
.bg-trust__item {
  text-align: center;
  padding: 0.35rem 0.5rem;
}
.bg-trust__item strong {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.bg-trust__item span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Sections */
.bg-section { padding: 4.25rem 0; }
.bg-section--mist { background: var(--mist); }
.bg-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.bg-section__head h2 {
  font-size: clamp(1.85rem, 3vw, 2.55rem);
}
.bg-section__sub {
  margin-top: 0.45rem;
  font-size: 0.98rem;
}
.bg-section__link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.15rem;
}
.bg-section__link:hover { color: var(--ink); }

/* Collection cards */
.bg-collections {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.bg-collection {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--sand);
}
.bg-collection img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.bg-collection:hover img { transform: scale(1.05); }
.bg-collection__label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.4rem 1rem 1.1rem;
  background: linear-gradient(transparent, rgba(13, 13, 15, 0.78));
  color: #fff;
}
.bg-collection__label strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
}
.bg-collection__label span {
  font-size: 0.78rem;
  opacity: 0.85;
  letter-spacing: 0.04em;
}
.bg-collection__ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
  background: linear-gradient(145deg, #2a2a30, #121216);
  color: var(--gold);
}

/* Product grid */
.bg-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.35rem 1rem;
}
.bg-product {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.bg-product__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--mist);
  overflow: hidden;
}
.bg-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.bg-product:hover .bg-product__media img { transform: scale(1.04); }
.bg-product__ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.bg-product__meta { display: grid; gap: 0.25rem; }
.bg-product__cat {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
}
.bg-product__name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink);
  font-weight: 500;
}
.bg-product__price {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
}
.bg-product__cta {
  margin-top: 0.15rem;
  align-self: start;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}
.bg-product:hover .bg-product__cta { color: var(--gold-dark); }

/* Occasions / events */
.bg-occasions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.bg-occasion {
  position: relative;
  display: block;
  min-height: 240px;
  overflow: hidden;
  background: var(--ink);
}
.bg-occasion img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  opacity: 0.7;
  transition: transform .5s ease, opacity .3s ease;
}
.bg-occasion:hover img {
  transform: scale(1.04);
  opacity: 0.85;
}
.bg-occasion__body {
  position: absolute;
  inset: auto 0 0;
  padding: 1.5rem 1.2rem;
  color: #fff;
  background: linear-gradient(transparent, rgba(13, 13, 15, 0.85));
}
.bg-occasion__body strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}
.bg-occasion__body span {
  font-size: 0.82rem;
  opacity: 0.85;
}

/* Promise */
.bg-promise {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(198, 161, 91, 0.18), transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(30, 77, 140, 0.12), transparent 45%),
    var(--ink);
  color: #fff;
}
.bg-promise .bg-section__head h2 { color: #fff; }
.bg-promise .bg-section__sub { color: rgba(255, 255, 255, 0.7); }
.bg-promise__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.bg-promise__card {
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}
.bg-promise__card strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.bg-promise__card p { color: rgba(255, 255, 255, 0.72); font-size: 0.92rem; }

/* CTA band */
.bg-cta {
  text-align: center;
  padding: 4.5rem 0;
  background: var(--sand);
}
.bg-cta h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  margin-bottom: 0.75rem;
}
.bg-cta p {
  max-width: 34rem;
  margin: 0 auto 1.5rem;
}

/* Footer */
.bg-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
}
.bg-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.bg-footer__brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.bg-footer h3 {
  font-family: "Jost", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
  font-weight: 600;
}
.bg-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.bg-footer a:hover { color: #fff; }
.bg-footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  font-size: 0.78rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.bg-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .bg-collections,
  .bg-products { grid-template-columns: repeat(3, 1fr); }
  .bg-trust__grid,
  .bg-promise__grid { grid-template-columns: repeat(2, 1fr); }
  .bg-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .bg-header__row {
    grid-template-columns: 1fr auto;
  }
  .bg-header__actions > .bg-header__link { display: none; }
  .bg-account-menu__btn {
    display: inline-flex;
    max-width: 7.5rem;
  }
  .bg-nav__list {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .bg-nav__list a { white-space: nowrap; }
  .bg-collections,
  .bg-products,
  .bg-occasions { grid-template-columns: repeat(2, 1fr); }
  .bg-hero__content { padding: 3rem 0 3.25rem; }
  .bg-section { padding: 3rem 0; }
}

@media (max-width: 520px) {
  .bg-collections,
  .bg-products,
  .bg-occasions,
  .bg-trust__grid,
  .bg-promise__grid,
  .bg-footer__grid { grid-template-columns: 1fr; }
}
