/* Slingo — palette and shapes taken straight from the logo:
   navy wordmark, orange bag, soft rounded everything. */

:root {
  --navy: #16243f;
  --navy-700: #1e3157;
  --navy-400: #5a6a8a;
  --navy-200: #aab3c4;
  --orange: #ee6b18;
  --orange-600: #d95c0c;
  --orange-100: #fdeee2;

  --bg: #ffffff;
  --surface: #f6f7f9;
  --surface-2: #eef0f4;
  --line: #e3e6ec;
  --text: #16243f;
  --muted: #66738c;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --pill: 999px;

  --shadow-sm: 0 1px 2px rgba(22, 36, 63, .06), 0 2px 8px rgba(22, 36, 63, .05);
  --shadow-md: 0 4px 12px rgba(22, 36, 63, .07), 0 12px 32px rgba(22, 36, 63, .08);

  --wrap: 1180px;
  --font: 'Nunito', ui-rounded, 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 { font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange);
}

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex; align-items: center; gap: 24px;
  height: 74px;
}

.logo { display: flex; align-items: center; }
.logo img, .logo svg { height: 42px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
/* buttons in the nav keep their own colour — do not tint them like nav links */
.nav a:not(.btn) { font-weight: 700; color: var(--navy-400); transition: color .15s; }
.nav a:not(.btn):hover { color: var(--navy); }

/* ----------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--pill);
  padding: 12px 22px;
  font-weight: 800; font-size: 15px;
  transition: transform .12s ease, background .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(238, 107, 24, .28); }
.btn-primary:hover { background: var(--orange-600); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }

.btn-ghost { background: var(--surface); color: var(--navy); }
.btn-ghost:hover { background: var(--surface-2); }

.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------------- hero */

.hero { padding: 72px 0 56px; }

.hero-card {
  position: relative; overflow: hidden;
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 72px 64px;
  color: #fff;
}

/* the orange blob echoes the bag shape in the logo */
.hero-card::after {
  content: ''; position: absolute;
  right: -80px; top: -60px;
  width: 380px; height: 380px;
  background: var(--orange);
  border-radius: 50% 50% 46% 54% / 55% 45% 55% 45%;
  opacity: .92;
}
.hero-card::before {
  content: ''; position: absolute;
  right: 150px; bottom: -140px;
  width: 260px; height: 260px;
  border: 22px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}

.hero-inner { position: relative; z-index: 1; max-width: 560px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 58px); margin: 14px 0 18px; }
.hero p { font-size: clamp(16px, 2vw, 19px); color: rgba(255, 255, 255, .78); margin: 0 0 30px; max-width: 46ch; }
.hero .eyebrow { color: #ffb37a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------------ filters */

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 22px;
}
.section-head h2 { font-size: clamp(24px, 3.4vw, 34px); }
.section-head p { color: var(--muted); margin: 6px 0 0; }

.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 32px;
}
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--navy-400);
  border-radius: var(--pill); padding: 9px 18px;
  font-weight: 800; font-size: 14px;
  transition: all .15s;
}
.chip:hover { border-color: var(--navy-200); color: var(--navy); }
.chip[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip .count { opacity: .55; margin-left: 6px; font-weight: 700; }

/* -------------------------------------------------------------------- grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 28px 24px;
  padding-bottom: 80px;
}

.card { display: block; }

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 14px;
}
.card-media img {
  width: 100%; height: 100%; object-fit: contain;
  transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}
.card:hover .card-media img { transform: scale(1.045); }

.card-media .placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: var(--navy-200);
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(22, 36, 63, .035) 10px 20px),
    var(--surface);
}

.badge {
  position: absolute; top: 12px; left: 12px;
  border-radius: var(--pill);
  padding: 5px 13px;
  font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase;
  background: #fff; color: var(--navy);
  box-shadow: var(--shadow-sm);
}
.badge-sold { background: var(--navy); color: #fff; }
.badge-reserved { background: var(--orange); color: #fff; }
.badge-featured { left: auto; right: 12px; background: var(--orange-100); color: var(--orange-600); }

.card-media.is-sold img { opacity: .55; }

.card-title {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.card-title h3 { font-size: 17px; font-weight: 800; }
.card-price { font-weight: 800; white-space: nowrap; }
.card-price.dm { color: var(--orange); font-size: 14px; }
.card-cat { color: var(--muted); font-size: 14px; margin-top: 2px; }

/* --------------------------------------------------------------- item page */

.item-layout {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px;
  padding: 40px 0 90px; align-items: start;
}

.gallery-main {
  background: var(--surface);
  border-radius: var(--r-xl); overflow: hidden;
}
/* No fixed ratio: the frame hugs the photo, so nothing is cropped and nothing is
   letterboxed. Capped by height as well as width so a very tall shot cannot run
   past the details beside it. */
.gallery-main img {
  display: block; margin: 0 auto;
  width: auto; max-width: 100%;
  height: auto; max-height: 82vh;
}

.thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.thumb {
  width: 72px; height: 88px; padding: 0; overflow: hidden;
  border-radius: var(--r-md); border: 2px solid transparent; background: var(--surface);
  transition: border-color .15s;
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb[aria-current='true'] { border-color: var(--orange); }

.item-info h1 { font-size: clamp(28px, 4vw, 42px); margin: 10px 0 12px; }
.item-price { font-size: 26px; font-weight: 900; margin-bottom: 6px; }
.item-price.dm { color: var(--orange); font-size: 20px; }
.item-desc { color: var(--muted); font-size: 17px; margin: 20px 0 28px; }

.specs { border-top: 1px solid var(--line); margin: 28px 0; }
.specs div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 13px 0; border-bottom: 1px solid var(--line);
}
.specs dt { color: var(--muted); font-weight: 700; }
.specs dd { margin: 0; font-weight: 700; text-align: right; }

.buy-box {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 24px; margin-top: 8px;
}
.buy-box p { margin: 0 0 16px; color: var(--muted); font-size: 15px; }

.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; margin-top: 28px; }
.back-link:hover { color: var(--navy); }

/* ------------------------------------------------------------------ footer */

.site-footer {
  background: var(--navy); color: rgba(255, 255, 255, .72);
  padding: 60px 0 40px; margin-top: 40px;
}
.site-footer .logo img, .site-footer .logo svg { height: 36px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-about { max-width: 52ch; margin: 32px 0; font-size: 15px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; opacity: .65; }
.site-footer a:hover { color: #fff; }

/* ------------------------------------------------------------------ states */

.empty {
  grid-column: 1 / -1;
  text-align: center; padding: 80px 24px;
  border: 2px dashed var(--line); border-radius: var(--r-xl);
  color: var(--muted);
}
.empty h3 { color: var(--navy); margin-bottom: 8px; font-size: 20px; }

.skeleton {
  border-radius: var(--r-lg); aspect-ratio: 4 / 5;
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite linear;
}
@keyframes shimmer { to { background-position: -120% 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .item-layout { grid-template-columns: 1fr; gap: 32px; }
  .hero-card { padding: 48px 32px; }
  .hero-card::after { width: 250px; height: 250px; right: -70px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .site-header .wrap { height: 64px; gap: 14px; }
  .logo img, .logo svg { height: 34px; }
  .nav { gap: 16px; }
  .nav .nav-link { display: none; }
  .hero { padding: 32px 0 40px; }
  .hero-card { padding: 40px 24px; border-radius: var(--r-lg); }
  /* keep the blob clear of the headline on narrow screens */
  .hero-card::after { width: 190px; height: 190px; right: -95px; top: -85px; }
  .hero-card::before { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .card-title h3 { font-size: 15px; }
}

/* Placeholder wordmark, used until the real logo file is dropped into
   /brand/logo.svg (or .png) — app.js swaps it in automatically. */
.wordmark {
  font-weight: 900; font-size: 30px; letter-spacing: -.035em;
  color: var(--navy); line-height: 1; user-select: none;
}
.wordmark .bag { color: var(--orange); }
.site-footer .wordmark { color: #fff; font-size: 26px; }

/* social icon row in the footer */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; }
.socials[hidden] { display: none; }
.social {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .85);
  transition: background .15s, color .15s, transform .12s;
}
.social:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
