/* Plus Twelve Golf — design system */
:root {
  --charcoal: #1c1c1a;
  --charcoal-soft: #26261f;
  --cream: #f2ecdd;
  --bone: #e8e0cc;
  --olive: #5f6a2e;
  --olive-dark: #414a1f;
  --gold: #c2a35d;
  --ink: #21211c;
  --muted: #7b7768;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(28, 28, 26, 0.12);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: rgba(28, 28, 26, 0.92);
  backdrop-filter: blur(10px);
  color: var(--cream);
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 40px; height: 40px; object-fit: contain; }
.nav-brand .word {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em;
  font-size: 1.05rem; text-transform: uppercase;
}
.nav-brand .word small { display: block; font-size: 0.62rem; color: var(--gold); letter-spacing: 0.28em; }
.nav-links { display: flex; gap: 26px; align-items: center; font-size: 0.92rem; letter-spacing: 0.04em; }
.nav-links a { opacity: 0.85; transition: opacity 0.15s, color 0.15s; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold); }
.nav-cta {
  background: var(--olive); color: var(--cream); border: none;
  padding: 9px 20px; border-radius: 999px; font-size: 0.88rem; font-weight: 600;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--olive-dark); }

/* ---------- hero ---------- */
.hero {
  background: radial-gradient(1200px 600px at 75% 20%, #33332a 0%, var(--charcoal) 60%);
  color: var(--cream);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px;
  align-items: center; padding: 72px 8vw 84px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.08; letter-spacing: 0.01em;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lede { margin: 22px 0 34px; font-size: 1.12rem; color: #cfc9b8; max-width: 34rem; }
.hero-art { justify-self: center; position: relative; }
.hero-art img { width: min(360px, 70vw); filter: drop-shadow(0 24px 40px rgba(0,0,0,0.45)); }
.badge-pill {
  display: inline-block; border: 1px solid var(--gold); color: var(--gold);
  border-radius: 999px; padding: 5px 16px; font-size: 0.78rem;
  letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 20px;
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem; letter-spacing: 0.03em;
  border: none; transition: transform 0.15s, background 0.15s, color 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--olive); color: var(--cream); }
.btn-primary:hover { background: var(--olive-dark); }
.btn-ghost { background: transparent; color: var(--cream); border: 1.5px solid rgba(242,236,221,0.4); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- sections ---------- */
.section { padding: 72px 8vw; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 36px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; }
.section-head .sub { color: var(--muted); font-size: 0.98rem; }
.section-head a.more { color: var(--olive); font-weight: 600; font-size: 0.94rem; }
.section-head a.more:hover { color: var(--olive-dark); }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.card {
  background: #fbf8ef; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 10px rgba(28,28,26,0.07);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer; border: 1px solid rgba(28,28,26,0.06);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card .thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bone); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover .thumb img { transform: scale(1.045); }
.card .body { padding: 16px 18px 20px; }
.card .cat { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); font-weight: 700; }
.card h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; margin: 6px 0 8px; line-height: 1.3; }
.card .price { font-weight: 700; font-size: 1.02rem; }
.card .oos { color: #a4472f; font-size: 0.82rem; font-weight: 600; margin-left: 8px; }

/* filter pills */
.filter-row { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.filter-row:last-of-type { margin-bottom: 30px; }
.filter-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--muted); min-width: 42px; }
.filter-row .pills { margin-bottom: 0; }
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.pill {
  border: 1.5px solid rgba(28,28,26,0.2); background: transparent; color: var(--ink);
  border-radius: 999px; padding: 8px 20px; font-size: 0.88rem; font-weight: 600;
  transition: all 0.15s;
}
.pill:hover { border-color: var(--olive); color: var(--olive); }
.pill.active { background: var(--charcoal); border-color: var(--charcoal); color: var(--cream); }

/* ---------- story band ---------- */
.band {
  background: var(--olive-dark); color: var(--cream);
  padding: 70px 8vw; display: grid; grid-template-columns: auto 1fr; gap: 44px; align-items: center;
}
.band img { width: 150px; }
.band h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.band p { color: #ddd8c6; max-width: 46rem; font-size: 1.05rem; }

/* ---------- showroom ---------- */
.showroom-hero { background: var(--charcoal); color: var(--cream); padding: 64px 8vw 34px; }
.showroom-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); }
.showroom-hero p { color: #b6b1a0; margin-top: 10px; max-width: 40rem; }
.showroom { background: var(--charcoal); padding: 30px 5vw 90px; }
.showroom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.show-tile { position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #2a2a24; }
.show-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform 0.4s ease; }
.show-tile:hover img { transform: scale(1.04); }
.show-tile .cap {
  position: absolute; inset: auto 0 0 0; padding: 40px 20px 16px;
  background: linear-gradient(transparent, rgba(20,20,18,0.88));
  color: var(--cream); opacity: 0; transition: opacity 0.25s;
}
.show-tile:hover .cap { opacity: 1; }
.show-tile .cap h3 { font-family: var(--font-display); font-size: 1.1rem; }
.show-tile .cap span { color: var(--gold); font-weight: 600; font-size: 0.92rem; }

/* ---------- modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(20,20,18,0.65); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.modal-back.open { display: flex; }
.modal {
  background: #fbf8ef; border-radius: 18px; max-width: 880px; width: 100%;
  max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr;
}
.modal .gallery { background: var(--bone); padding: 18px; }
.modal .gallery .main img { border-radius: 10px; aspect-ratio: 1/1; object-fit: cover; width: 100%; }
.modal .gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.modal .gallery .thumbs img {
  width: 58px; height: 58px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent;
}
.modal .gallery .thumbs img.sel { border-color: var(--olive); }
.modal .info { padding: 30px 28px; }
.modal .info .cat { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--olive); font-weight: 700; }
.modal .info h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 8px 0 6px; line-height: 1.2; }
.modal .info .price { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.modal .info p { color: #55524a; font-size: 0.98rem; margin-bottom: 24px; }
.sizes-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.sizes-label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-right: 4px; }
.size-chip {
  border: 1.5px solid rgba(28,28,26,0.25); border-radius: 8px; padding: 4px 12px;
  font-size: 0.85rem; font-weight: 600; background: #fff;
}
.modal .close {
  position: sticky; top: 0; float: right; margin: 10px;
  background: rgba(28,28,26,0.08); border: none; border-radius: 999px;
  width: 34px; height: 34px; font-size: 1.05rem;
}

/* ---------- footer ---------- */
footer {
  background: var(--charcoal); color: #98937f; padding: 44px 8vw;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 0.88rem;
}
footer .fb { display: flex; align-items: center; gap: 10px; color: var(--cream); }
footer .fb img { width: 30px; }
footer a:hover { color: var(--gold); }

/* ---------- admin ---------- */
.admin-wrap { max-width: 1080px; margin: 0 auto; padding: 40px 24px 90px; }
.login-card {
  max-width: 400px; margin: 9vh auto; background: #fbf8ef; border-radius: 18px;
  padding: 38px 34px; box-shadow: var(--shadow); text-align: center;
}
.login-card img { width: 84px; margin: 0 auto 14px; }
.login-card h1 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 22px; }
.field { text-align: left; margin-bottom: 14px; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border-radius: 9px; border: 1.5px solid rgba(28,28,26,0.18);
  background: #fff; font-family: inherit; font-size: 0.96rem;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--olive); }
.err { color: #a4472f; font-size: 0.88rem; margin: 8px 0; min-height: 1.2em; }
.ok-msg { color: var(--olive); font-size: 0.88rem; margin: 8px 0; }

.admin-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 12px; }
.admin-bar h1 { font-family: var(--font-display); font-size: 1.6rem; }
.admin-bar .actions { display: flex; gap: 10px; }
.btn-small {
  padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 0.86rem; border: none;
  background: var(--olive); color: var(--cream);
}
.btn-small.gray { background: rgba(28,28,26,0.1); color: var(--ink); }
.btn-small.danger { background: #fceae4; color: #a4472f; }
.btn-small:hover { filter: brightness(0.94); }

.ptable { width: 100%; border-collapse: collapse; background: #fbf8ef; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(28,28,26,0.07); }
.ptable th { text-align: left; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid rgba(28,28,26,0.1); }
.ptable td { padding: 12px 16px; border-bottom: 1px solid rgba(28,28,26,0.06); vertical-align: middle; font-size: 0.94rem; }
.ptable tr:last-child td { border-bottom: none; }
.ptable img.mini { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; }
.tag.feat { background: #efe7cf; color: #8a6d1f; }
.tag.out { background: #fceae4; color: #a4472f; }
.tag.in { background: #e7ecd8; color: var(--olive-dark); }

.drawer-back { position: fixed; inset: 0; background: rgba(20,20,18,0.5); z-index: 100; display: none; }
.drawer-back.open { display: block; }
.drawer {
  position: fixed; top: 0; right: -560px; width: min(560px, 100vw); height: 100vh; z-index: 101;
  background: #fbf8ef; box-shadow: -12px 0 40px rgba(0,0,0,0.25);
  transition: right 0.28s ease; overflow-y: auto; padding: 30px 30px 60px;
}
.drawer.open { right: 0; }
.drawer h2 { font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 20px; }
.drawer .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { display: flex; gap: 22px; margin: 6px 0 16px; font-size: 0.92rem; }
.checks label { display: flex; gap: 7px; align-items: center; }
.img-manage { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 18px; }
.img-manage .im { position: relative; }
.img-manage img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; border: 2px solid transparent; }
.img-manage .im.primary img { border-color: var(--olive); }
.img-manage .im button {
  position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 999px;
  border: none; background: #a4472f; color: #fff; font-size: 0.7rem; line-height: 1;
}
.img-manage .im .mk {
  position: absolute; bottom: 4px; left: 4px; right: auto; top: auto; width: auto; height: auto;
  background: rgba(28,28,26,0.75); color: var(--cream); font-size: 0.62rem; padding: 3px 7px; border-radius: 6px;
}
.dropzone {
  border: 2px dashed rgba(95,106,46,0.5); border-radius: 12px; padding: 22px; text-align: center;
  color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; background: rgba(95,106,46,0.05);
}
.dropzone.drag { background: rgba(95,106,46,0.14); border-color: var(--olive); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 54px 6vw 60px; }
  .hero .btn-row { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art img { width: min(240px, 60vw); }
  .band { grid-template-columns: 1fr; text-align: center; }
  .band img { margin: 0 auto; }
  .modal { grid-template-columns: 1fr; }
  .nav-links { gap: 16px; font-size: 0.86rem; }
  .nav-links .hide-m { display: none; }
}
