/* Nyack Maker Ornament Shop — heritage holiday theme */
:root {
  --bg: #f4ede0;          /* linen */
  --paper: #fffbf3;       /* card cream */
  --ink: #221e19;
  --muted: #5c5349;       /* kept dark for easy reading */
  --line: #dfd3bd;
  --forest: #1d3b2e;
  --forest-2: #285040;
  --forest-deep: #12241c;
  --cranberry: #8a1e2c;
  --cranberry-2: #a02a3a;
  --gold: #b08a3e;
  --gold-light: #d8b46a;
  /* aliases used by other pages */
  --pine: var(--forest);
  --pine-2: var(--forest-2);
  --berry: var(--cranberry);
  --radius: 10px;
  --shadow: 0 1px 2px rgba(34, 30, 25, .06), 0 10px 28px rgba(34, 30, 25, .09);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background-color: var(--bg);
  /* faint linen weave */
  background-image:
    repeating-linear-gradient(0deg, rgba(120, 95, 60, .025) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(120, 95, 60, .02) 0 1px, transparent 1px 4px);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
a { color: var(--forest); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.fl { width: 14px; height: 14px; vertical-align: -2px; color: var(--gold); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* announcement + header */
.announce { background: var(--forest-deep); color: #e9dcc4; font-size: 14px; letter-spacing: .02em; text-align: center; }
.announce .wrap { padding-top: 7px; padding-bottom: 7px; }
.announce .fl { color: var(--gold-light); margin: 0 6px; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(250, 245, 235, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(176, 138, 62, .35); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand b { font-family: var(--serif); font-size: clamp(17px, 4.4vw, 22px); font-weight: 600; }
.brand small { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-top: -2px; font-weight: 600; }
.brand svg { width: 32px; height: 34px; }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--forest); background: var(--forest); color: #f6eedd; border-radius: 6px; padding: 10px 16px; font-weight: 600; min-height: 44px; }
.cart-btn:hover { background: var(--forest-2); }
.cart-btn .count { min-width: 24px; height: 24px; border-radius: 999px; background: var(--gold-light); color: var(--forest-deep); font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 6px; padding: 14px 24px; font-weight: 700; font-size: 17px; text-decoration: none; min-height: 48px; letter-spacing: .01em; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-2); }
.btn-cta { background: var(--cranberry); color: #fff; }
.btn-cta:hover { background: var(--cranberry-2); }
.btn-primary:disabled, .btn-cta:disabled { opacity: .45; cursor: not-allowed; }
.btn-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-gold { background: var(--gold-light); color: var(--forest-deep); padding: 12px 20px; white-space: nowrap; }
.btn-gold:hover { background: #e4c27f; }
.btn-gold .sm { display: none; }

/* hero */
.hero-x { position: relative; background: #0f1b15; color: #f5ecdc; overflow: hidden; isolation: isolate; border-bottom: 3px solid var(--gold); }
.hero-media { position: absolute; inset: 0 0 0 auto; width: 62%; z-index: -1; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%); mask-image: linear-gradient(to right, transparent 0, #000 38%); }
.hero-inner { min-height: min(680px, 86vh); display: flex; align-items: center; padding-top: 56px; padding-bottom: 56px; pointer-events: none; }
.hero-copy { max-width: 540px; min-width: 0; width: 100%; pointer-events: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 16px; font-weight: 600; }
.eyebrow .fl { color: var(--gold-light); width: 16px; height: 16px; }
.hero-x h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.06; margin: 0 0 20px; color: #fbf3e4; font-weight: 600; }
.hero-x h1 em { font-style: italic; color: var(--gold-light); font-weight: 500; }
.hero-x p { font-size: 19px; color: #ddd1bd; margin: 0 0 28px; max-width: 30em; }
.try { display: flex; gap: 8px; background: rgba(255, 250, 241, .07); border: 1px solid rgba(216, 180, 106, .45); border-radius: 8px; padding: 6px; max-width: 500px; backdrop-filter: blur(6px); }
.try input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; font: 600 20px/1.2 var(--serif); letter-spacing: .08em; text-transform: uppercase; padding: 10px 14px; }
.try input::placeholder { color: #b9ac95; text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 400; font-size: 18px; }
.try input:focus { outline: none; }
.try:focus-within { border-color: var(--gold-light); box-shadow: 0 0 0 3px rgba(216, 180, 106, .2); }
.hero-err { color: #ffb9ad; margin-top: 8px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 15px; }
.facts li::before { content: "✦"; color: var(--gold); margin-right: 7px; }
.hero-x .facts { color: #c4b8a2; margin-top: 20px; }
.hero-tag { position: absolute; right: 20px; bottom: 18px; font-size: 14px; color: #f5ecdc; background: rgba(15, 27, 21, .65); border: 1px solid rgba(216, 180, 106, .4); padding: 7px 14px; border-radius: 6px; text-decoration: none; backdrop-filter: blur(6px); }
.hero-tag:hover { background: rgba(15, 27, 21, .85); }

/* section flourish */
.flourish { display: flex; align-items: center; gap: 12px; color: var(--gold); margin-bottom: 10px; }
.flourish span { flex: 0 0 56px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.flourish span:last-child { background: linear-gradient(90deg, var(--gold), transparent); }
.flourish svg { width: 22px; height: 22px; }
.flourish.light { color: var(--gold-light); justify-content: center; }
.flourish.light span { background: linear-gradient(90deg, transparent, var(--gold-light)); }
.flourish.light span:last-child { background: linear-gradient(90deg, var(--gold-light), transparent); }

/* shop banner */
.band { position: relative; overflow: hidden; background: linear-gradient(180deg, #7c1d2a 0%, #6a1824 100%); border-bottom: 3px solid var(--gold); scroll-margin-top: 72px; }
.band-inner { padding-top: 48px; padding-bottom: 32px; position: relative; }
.band .shop-head h2 { color: #fbf3e4; }
.band .shop-head .sub { color: #ecd9cf; }
.band .count-note { color: #e4c27f; }
.band .flourish { color: var(--gold-light); }
.band .flourish span { background: linear-gradient(90deg, transparent, var(--gold-light)); }
.band .flourish span:last-child { background: linear-gradient(90deg, var(--gold-light), transparent); }
.band .filters { margin-bottom: 0; background: rgba(255, 251, 243, .97); border-color: rgba(216, 180, 106, .6); }
.band-sprig { position: absolute; width: 230px; right: -30px; top: 10px; transform: scaleX(-1) rotate(-10deg); opacity: .9; }

/* shop + filters */
.shop { padding-top: 36px; padding-bottom: 72px; }
.shop-head { margin-bottom: 22px; }
.shop-head h2 { font-size: clamp(30px, 3.6vw, 40px); margin: 0; color: var(--forest-deep); }
.shop-head .sub { margin: 6px 0 0; color: var(--muted); font-size: 18px; }
.count-note { color: var(--gold); font-weight: 600; font-size: 15px; margin-left: 6px; white-space: nowrap; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 9px 16px; font-size: 16px; white-space: nowrap; min-height: 44px; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--forest); color: #f6eedd; border-color: var(--forest); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: #fff; }
.seg button { border: 0; background: none; border-radius: 4px; padding: 8px 14px; font-size: 16px; min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--cranberry); color: #fff; }
.search { flex: 1 1 200px; max-width: 340px; border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 10px 14px; font: inherit; font-size: 16px; min-height: 44px; }
.search:focus { outline: none; border-color: var(--forest); }

/* grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 8px 12px; text-align: left; display: flex; flex-direction: column; gap: 10px; transition: transform .18s, box-shadow .18s, border-color .18s; position: relative; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18, 36, 28, .18); border-color: var(--gold); }
.card-art {
  position: relative; border-radius: 6px; padding: 20px 18px; overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgba(216, 180, 106, .20) 0 2.5%, transparent 9%),
    radial-gradient(circle at 86% 26%, rgba(160, 42, 58, .26) 0 2.5%, transparent 9%),
    radial-gradient(circle at 80% 84%, rgba(216, 180, 106, .14) 0 2.5%, transparent 8%),
    radial-gradient(circle at 18% 82%, rgba(90, 150, 110, .18) 0 3%, transparent 10%),
    radial-gradient(ellipse at 50% 42%, #24493b 0%, #16301f 62%, #0f2018 100%);
}
.card-art::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(216, 180, 106, .35); border-radius: 4px; pointer-events: none; transition: border-color .18s; }
.card:hover .card-art::before { border-color: rgba(216, 180, 106, .75); }
.card img { width: 100%; aspect-ratio: 1 / 1.08; object-fit: contain; display: block; position: relative; filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .45)); transition: transform .25s; }
.card:hover img { transform: scale(1.03); }
.card .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 2px 8px 0; }
.card .t { font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--forest-deep); }
.card .g { font-size: 13px; color: var(--gold); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.grid-sub { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin: 18px 0 2px; font: 600 26px/1.2 "Playfair Display", Georgia, serif; color: var(--forest); }
.grid-sub:first-child { margin-top: 0; }
.grid-sub span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.grid-sub b { font-weight: 600; white-space: nowrap; }
.empty { padding: 40px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* product dialog */
dialog { border: 0; padding: 0; border-radius: 14px; background: var(--paper); color: var(--ink); width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
dialog::backdrop { background: rgba(12, 22, 17, .62); }
.pd { display: grid; grid-template-columns: 1.1fr 1fr; max-height: calc(100dvh - 32px); }
.pd-art {
  position: relative; display: grid; place-items: center; min-height: 460px; padding: 36px; overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(216, 180, 106, .22) 0 3%, transparent 9%),
    radial-gradient(circle at 82% 30%, rgba(160, 42, 58, .30) 0 3%, transparent 10%),
    radial-gradient(circle at 74% 80%, rgba(216, 180, 106, .18) 0 3%, transparent 9%),
    radial-gradient(circle at 26% 78%, rgba(80, 140, 100, .22) 0 4%, transparent 11%),
    radial-gradient(ellipse at 50% 45%, #22473a 0%, #14281f 60%, #0d1a14 100%);
}
.pd-art::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(216, 180, 106, .45); border-radius: 8px; pointer-events: none; }
#preview { width: 100%; max-width: 390px; position: relative; }
#preview svg, #preview img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .45)); }
.pd-art .loading { color: #c9bda7; font-size: 15px; }
.pd-art img:not(.sprig) { position: relative; }
.pd-sprig { position: absolute; top: 2px; left: -14px; width: 220px; transform: rotate(-10deg); opacity: .95; pointer-events: none; z-index: 1; }
.pd-body { padding: 32px; display: flex; flex-direction: column; gap: 16px; overflow: auto; }
.pd-body h3 { font-size: 32px; margin: 0; color: var(--forest-deep); line-height: 1.15; }
#pdCat { color: var(--gold); text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; }
.price { font-size: 24px; font-weight: 700; color: var(--cranberry); font-family: var(--serif); }
.close { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(216, 180, 106, .5); background: rgba(15, 27, 21, .6); color: #f5ecdc; font-size: 24px; line-height: 1; z-index: 3; }
.close:hover { background: rgba(15, 27, 21, .85); }
label.f { display: flex; flex-direction: column; gap: 8px; font-weight: 600; font-size: 16px; }
.name-input { font: 600 26px/1.2 var(--serif); letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 14px 16px; width: 100%; color: var(--forest-deep); }
.name-input::placeholder { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 400; font-size: 18px; color: #9a8f80; }
.name-input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(29, 59, 46, .15); }
.hint { font-size: 15px; color: var(--muted); font-weight: 400; }
.err { font-size: 15px; color: var(--cranberry); min-height: 1.2em; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.qty button { border: 0; background: none; width: 46px; height: 48px; font-size: 22px; color: var(--forest); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; font-size: 18px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.alt { font-size: 16px; font-weight: 600; }
.spec { list-style: none; padding: 14px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.spec .fl { margin-right: 6px; }

/* cart drawer */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(440px, 100%); background: var(--paper); z-index: 40; transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0, 0, 0, .2); }
.drawer.open { transform: none; }
.scrim { position: fixed; inset: 0; background: rgba(12, 22, 17, .5); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--forest); color: #f6eedd; border-bottom: 3px solid var(--gold); }
.drawer header h3 { margin: 0; font-size: 24px; }
.drawer header .btn-ghost { color: #f6eedd; border-color: rgba(246, 238, 221, .4); min-height: 40px; }
.drawer .lines { flex: 1; overflow: auto; padding: 8px 20px; }
.line { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line img { width: 60px; height: 64px; object-fit: contain; }
.line .n { font-family: var(--serif); font-weight: 600; letter-spacing: .06em; font-size: 18px; color: var(--forest-deep); }
.line .d { font-size: 15px; color: var(--muted); }
.line .rm { border: 0; background: none; color: var(--muted); font-size: 15px; text-decoration: underline; padding: 4px 0; }
.line .qty button { width: 40px; height: 40px; }
.drawer footer { padding: 18px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; background: #fbf6ec; }
.sum { display: flex; justify-content: space-between; font-size: 17px; }
.sum.total { font-weight: 700; font-size: 20px; font-family: var(--serif); }
.notice { background: #fbf0d6; border: 1px solid #e8d29c; border-radius: 8px; padding: 10px 12px; font-size: 15px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--forest-deep); color: #f6eedd; border: 1px solid var(--gold); padding: 12px 18px; border-radius: 8px; font-size: 16px; opacity: 0; transition: .2s; z-index: 60; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* how it works */
.how { position: relative; overflow: hidden; background: var(--forest); color: #f1e8d6; padding-top: 64px; padding-bottom: 64px; border-top: 3px solid var(--gold); }
.how h2 { text-align: center; margin: 0 0 32px; font-size: clamp(30px, 3.6vw, 40px); color: #fbf3e4; }
.how ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; position: relative; }
.how li { counter-increment: s; background: rgba(255, 251, 243, .06); border: 1px solid rgba(216, 180, 106, .35); border-radius: var(--radius); padding: 24px; }
.how li::before { content: counter(s); font-family: var(--serif); font-size: 36px; font-style: italic; color: var(--gold-light); display: block; margin-bottom: 4px; line-height: 1; }
.how h3 { margin: 0 0 6px; font-size: 21px; color: #fbf3e4; }
.how p { margin: 0; color: #d4c8b2; font-size: 17px; }
.sprig { pointer-events: none; }
.how .sprig { position: absolute; width: 230px; opacity: .9; }
.how .sprig-l { top: 10px; left: -40px; transform: rotate(-14deg); }
.how .sprig-r { bottom: 6px; right: -36px; transform: scaleX(-1) rotate(-12deg); }

footer.site { padding-top: 36px; padding-bottom: 44px; color: var(--muted); font-size: 15px; background: #efe6d5; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot-brand b { display: block; font-family: var(--serif); font-size: 20px; color: var(--forest-deep); }
.foot-note { text-align: right; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .announce { font-size: 13px; }
  .announce .fl, .announce .ann-long { display: none; }
  .chips { flex-wrap: wrap; overflow: visible; }
  .top .wrap { height: 64px; }
  .hero-media { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 1 / 1.12; }
  .hero-media img { object-position: 50% 60%; }
  .hero-tag { top: 12px; bottom: auto; right: 12px; font-size: 13px; }
  .hero-media img, .hero-media video { -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); mask-image: linear-gradient(to bottom, #000 80%, transparent 100%); }
  .hero-inner { min-height: 0; padding-top: 0; padding-bottom: 40px; margin-top: -24px; position: relative; }
  .btn-gold { padding: 12px 18px; }
  .btn-gold .lg { display: none; }
  .btn-gold .sm { display: inline; }
  .try input { padding: 10px; font-size: 18px; }
  .hero-x h1 { font-size: 36px; }
  .brand svg { display: none; }
  .brand b { white-space: nowrap; font-size: 17px; }
  .brand small { font-size: 10px; }
  .cart-btn { padding: 8px 12px; }
  .shop { padding-top: 24px; }
  .band-inner { padding-top: 36px; padding-bottom: 22px; }
  .band-sprig { width: 150px; right: -34px; top: 4px; }
  .filters { padding: 10px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card { padding: 6px 6px 10px; gap: 8px; }
  .card-art { padding: 15px 13px; }
  .card .meta { flex-direction: column; gap: 0; padding: 0 6px; }
  .card .t { font-size: 17px; }
  .card .g { font-size: 12px; }
  .search { max-width: none; margin-left: 0; }
  dialog { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; max-width: 100%; }
  .pd { display: block; max-height: 100dvh; height: 100dvh; overflow: auto; }
  .pd-art { min-height: 0; padding: 48px 56px 30px; }
  #preview { max-width: 250px; }
  .pd-sprig { width: 120px; top: -4px; left: -16px; }
  .pd-body { padding: 22px 16px 32px; overflow: visible; }
  .pd-body h3 { font-size: 28px; }
  .how ol { grid-template-columns: 1fr; }
  .how .sprig { width: 160px; }
  .foot-note { text-align: left; }
}
