/* LDS gallery — extends styles.css
   Reverent theme: deep temple-navy night + warm gold + soft sky blue. */

:root {
  --hw-night: #0b1730;
  --hw-night-2: #12233f;
  --hw-purple: #1d3557;
  --hw-orange: #c9a227;
  --hw-orange-soft: #e6c85a;
  --hw-green: #6ea8d8;
  --hw-cream: #fbf7ee;
}

/* ---------- Hero ---------- */
.hw-hero {
  position: relative;
  padding: 84px 0 56px;
  color: #fff;
  background:
    radial-gradient(900px 420px at 82% 8%, rgba(224, 64, 154, 0.32), transparent 62%),
    radial-gradient(700px 380px at 12% 90%, rgba(67, 214, 224, 0.18), transparent 60%),
    linear-gradient(160deg, var(--hw-night) 0%, var(--hw-night-2) 55%, var(--hw-purple) 100%);
  overflow: hidden;
}
.hw-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 70% 20%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.5px 1.5px at 45% 70%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, rgba(255,255,255,.4), transparent),
    radial-gradient(2px 2px at 10% 80%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 60% 40%, rgba(255,122,200,.5), transparent);
  opacity: .85; pointer-events: none;
}
.hw-hero .wrap { position: relative; z-index: 2; }
.hw-hero .eyebrow {
  color: var(--hw-orange-soft); text-transform: uppercase;
  letter-spacing: 2.5px; font-size: .78rem; font-weight: 700; margin-bottom: 14px;
}
.hw-hero h1 { color: #fff; max-width: 15em; }
.hw-hero .lead { color: #e6def7; font-size: 1.15rem; max-width: 42em; }
.hw-hero .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.hw-hero .btn.gold { background: var(--hw-orange); }
.hw-hero .btn.gold:hover { background: #c22f83; }
.hw-hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.hw-hero .btn.ghost:hover { background: rgba(255,255,255,.1); }
.hw-note {
  margin-top: 20px; font-size: .82rem; color: #c8bce4;
  border-left: 3px solid var(--hw-orange); padding-left: 12px;
}

/* ---------- Featured puzzle ---------- */
.hw-featured { padding: 56px 0 20px; }
.hw-featured .hw-feat-inner {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); overflow: hidden;
}
.hw-featured .hw-feat-art { position: relative; }
.hw-featured .hw-feat-art img { width: 100%; display: block; }
.hw-featured .hw-feat-flag {
  position: absolute; top: 16px; left: 16px;
  background: var(--hw-orange); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 7px 14px; border-radius: 999px;
  box-shadow: 0 6px 18px rgba(224,64,154,.4);
}
.hw-featured .hw-feat-copy { padding: 34px 38px 34px 0; }
.hw-featured .eyebrow {
  color: var(--hw-orange); text-transform: uppercase; letter-spacing: 2px;
  font-size: .74rem; font-weight: 700; margin-bottom: 10px;
}
.hw-featured h2 { margin-bottom: .35em; }
.hw-featured .hw-feat-price {
  font-size: 1.05rem; color: var(--ink); font-weight: 700; margin: 6px 0 16px;
}
.hw-featured .hw-feat-price span { color: var(--ink-soft); font-weight: 400; font-size: .9rem; }
.hw-featured .hw-feat-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Gallery ---------- */
.hw-gallery { padding: 40px 0 74px; }
.hw-toolbar {
  display: flex; align-items: center; gap: 16px; margin: 0 0 26px; flex-wrap: wrap;
}
.hw-toolbar input[type="search"] {
  flex: 1; min-width: 220px; max-width: 420px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-family: inherit; font-size: .95rem; background: var(--white); color: var(--ink);
}
.hw-toolbar input[type="search"]:focus { outline: 2px solid var(--hw-orange-soft); border-color: var(--hw-orange); }
.hw-count { font-size: .85rem; color: var(--ink-soft); letter-spacing: .5px; }

.hw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.hw-card {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform .18s ease, box-shadow .18s ease; cursor: pointer;
}
.hw-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(28,36,48,.18); }
.hw-card .hw-thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--cream-2); }
.hw-card .hw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.hw-card:hover .hw-thumb img { transform: scale(1.05); }
.hw-card .hw-body { padding: 13px 15px 15px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hw-card .hw-title { font-size: .98rem; font-weight: 700; color: var(--ink); }
.hw-card .hw-pick { font-size: .72rem; text-transform: uppercase; letter-spacing: 1.2px; color: var(--hw-orange); white-space: nowrap; }
.hw-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(14,10,36,.82); color: #fff; font-size: .68rem;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px;
}
.hw-badge.feat { background: var(--hw-orange); }

/* ---------- Lightbox ---------- */
.hw-lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(9, 6, 20, .85); backdrop-filter: blur(4px);
  padding: 30px; overflow: auto;
}
.hw-lightbox.on { display: grid; place-items: center; }
.hw-lb-inner {
  background: var(--white); border-radius: 20px; overflow: hidden;
  display: grid; grid-template-columns: 1.3fr 1fr; max-width: 1000px; width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.hw-lb-inner img { width: 100%; height: 100%; object-fit: cover; display: block; background: var(--hw-night); }
.hw-lb-side { padding: 30px 32px; }
.hw-lb-side .eyebrow { color: var(--hw-orange); text-transform: uppercase; letter-spacing: 2px; font-size: .72rem; font-weight: 700; }
.hw-lb-side h3 { margin: 8px 0 6px; }
.hw-lb-side .hint { font-size: .85rem; color: var(--ink-soft); }
.hw-lb-price { font-weight: 700; color: var(--ink); margin: 4px 0 14px; }
.hw-lb-sizes { display: grid; gap: 9px; margin: 14px 0 20px; }
.hw-lb-sizes label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
  font-size: .92rem; transition: border-color .15s ease, background .15s ease;
}
.hw-lb-sizes label:hover { border-color: var(--hw-orange-soft); background: var(--cream); }
.hw-lb-sizes input { accent-color: var(--hw-orange); }
.hw-lb-sizes label:has(input:checked) { border-color: var(--hw-orange); background: #fdf0f8; }
.hw-lb-actions { display: grid; gap: 10px; }
.hw-close {
  position: absolute; top: 18px; right: 22px; z-index: 210;
  background: rgba(255,255,255,.14); color: #fff; border: none; cursor: pointer;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.5rem; line-height: 1;
}
.hw-close:hover { background: rgba(255,255,255,.28); }

@media (max-width: 820px) {
  .hw-featured .hw-feat-inner { grid-template-columns: 1fr; }
  .hw-featured .hw-feat-copy { padding: 26px 26px 30px; }
  .hw-lb-inner { grid-template-columns: 1fr; }
  .hw-lb-inner img { max-height: 46vh; }
}

/* ---------- Mobile refinements (phones) ---------- */
@media (max-width: 640px) {
  .hw-hero { padding: 60px 0 38px; }
  .hw-hero .lead { font-size: 1.02rem; }
  .hw-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hw-card { border-radius: 13px; }
  .hw-card .hw-body {
    padding: 10px 11px 12px; flex-direction: column;
    align-items: flex-start; gap: 3px;
  }
  .hw-card .hw-title { font-size: .84rem; line-height: 1.25; }
  .hw-card .hw-pick { font-size: .64rem; letter-spacing: 1px; }
  .hw-badge { font-size: .6rem; padding: 3px 7px; }
  .hw-toolbar { gap: 10px; margin-bottom: 20px; }
  .hw-toolbar input[type="search"] { min-width: 0; max-width: none; }
  .hw-featured .hw-feat-copy { padding: 22px 20px 26px; }
  .hw-lb-side { padding: 22px 20px; }
}
