/* ShuGaz Sweets storefront — cream + gold, "elegant top tier Candyland".
   Used by index.html only (admin + brownies pages keep styles.css). */
:root {
  --cream: #fbf3e4;
  --cream2: #f4e6cc;
  --card: #fffaf1;
  --gold: #c9a24a;
  --gold2: #e3c77a;
  --brown: #3b2314;
  --rust: #b5531c;
  --ink: #2b1a10;
  --muted: #7a5c44;
  --black: #141010;
  --green: #2e7d32;
  --red: #b3261e;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.55; }
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--brown); margin: 0 0 10px; line-height: 1.2; }
h2 { font-size: 34px; text-align: center; }
h2::after { content: ''; display: block; width: 90px; height: 2px; background: var(--gold); margin: 10px auto 0; }
h3 { font-size: 22px; }
p { margin: 0 0 12px; }
a { color: var(--rust); }
img { max-width: 100%; }
.small { font-size: 16px; color: var(--muted); }
.sub { text-align: center; color: var(--muted); margin-top: 6px; }
.wrap { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 18px 80px; }

/* Falling seasonal treats — background only, never over words or photos */
#falling { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
#falling span { position: absolute; top: -8%; opacity: .55; animation: fall linear infinite; }
@keyframes fall { to { transform: translateY(115vh) rotate(340deg); } }
@media (prefers-reduced-motion: reduce) { #falling { display: none; } }

/* Hero: black stripes only behind the cream card */
.hero { position: relative; z-index: 1; padding: 34px 16px;
  background: repeating-linear-gradient(90deg, var(--black) 0 28px, #2a2222 28px 56px); border-bottom: 3px solid var(--gold); }
.hero-card { max-width: 560px; margin: 0 auto; background: var(--cream); border: 3px double var(--gold); outline: 1px solid var(--gold2); outline-offset: -10px;
  border-radius: 22px; text-align: center; padding: 26px 22px 28px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.hero .logo { width: 170px; height: 170px; border-radius: 50%; display: block; margin: 0 auto 10px; }
.hero h1 { font-size: 46px; }
.hero h1 span { font-style: italic; color: var(--rust); }
.tag { font-size: 18px; color: var(--muted); }
.script-btn { display: inline-block; font-family: 'Parisienne', cursive; font-size: 30px; color: var(--brown); text-decoration: none;
  border: 2px solid var(--gold); border-radius: 999px; padding: 4px 26px; background: linear-gradient(180deg, #fffaf0, var(--cream2)); margin-top: 6px; }

/* Section nav — the nav IS the section names */
nav.sections { position: sticky; top: 0; z-index: 5; background: rgba(251,243,228,.97); border-bottom: 1px solid var(--gold);
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; -webkit-overflow-scrolling: touch; }
nav.sections a { flex: 0 0 auto; font-family: 'Playfair Display', Georgia, serif; font-size: 17px; color: var(--brown); text-decoration: none;
  border: 1px solid var(--gold); border-radius: 999px; padding: 6px 14px; background: var(--card); }
nav.sections a:hover, nav.sections a:focus { background: var(--gold2); }

.menu-sec { padding-top: 38px; scroll-margin-top: 60px; }
.gold-card { background: var(--card); border: 2px solid var(--gold); border-radius: 18px; padding: 18px 20px; margin: 18px 0; }
.gold-card ul { margin: 0 0 12px; padding-left: 22px; }
.intro { margin-top: 26px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 18px; }
.card { background: var(--card); border: 2px solid var(--gold); border-radius: 18px; overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(59,35,20,.15); }
.card.ask { cursor: default; }
.card .ph { aspect-ratio: 4 / 3; background: var(--cream2); overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body h3 { margin: 0; }
.from { font-weight: bold; color: var(--rust); }
.desc { font-size: 16px; color: var(--muted); line-height: 1.45; }
.price-note { font-size: 15px; color: var(--brown); font-style: italic; }
.badge { display: inline-block; font-size: 13px; padding: 2px 10px; border-radius: 999px; background: #eee; color: #555; vertical-align: middle; }

.btn { display: inline-block; font-family: 'Parisienne', cursive; font-size: 24px; line-height: 1.2; border: 2px solid var(--gold); border-radius: 999px;
  background: var(--brown); color: #fff4dc; padding: 6px 22px; cursor: pointer; text-decoration: none; text-align: center; }
.btn.small { font-size: 21px; padding: 4px 16px; }
.btn.big { width: 100%; font-size: 30px; margin-top: 18px; }
.btn.ghost { background: transparent; color: var(--brown); font-family: Georgia, serif; font-size: 15px; padding: 3px 12px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.toggle { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.toggle button { font-family: 'Playfair Display', Georgia, serif; font-size: 17px; border: 2px solid var(--gold); background: var(--card); color: var(--brown);
  border-radius: 999px; padding: 6px 16px; cursor: pointer; }
.toggle button.on { background: var(--brown); color: #fff4dc; }

/* Pop-up */
.modal { position: fixed; inset: 0; z-index: 20; background: rgba(20,16,16,.6); display: none; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; }
.modal.open { display: flex; }
.modal-box { position: relative; background: var(--cream); border: 3px double var(--gold); border-radius: 22px; max-width: 560px; width: 100%; padding: 18px 18px 22px; }
.modal-x { position: absolute; top: 8px; right: 10px; border: 0; background: var(--card); border-radius: 50%; width: 40px; height: 40px; font-size: 28px; line-height: 1; color: var(--brown); cursor: pointer; z-index: 2; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; }
.gallery img { flex: 0 0 100%; width: 100%; max-height: 420px; object-fit: cover; scroll-snap-align: center; border-radius: 14px; }
.modal-box h3 { font-size: 28px; margin-top: 14px; }
.variant { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--cream2); }
.vlabel { font-weight: bold; }

/* Cart */
.cart { background: var(--card); border: 2px solid var(--gold); border-radius: 18px; padding: 18px 20px; }
.cartline { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--cream2); flex-wrap: wrap; }
.cartline.total { font-weight: bold; font-size: 22px; border-bottom: 0; }
label { display: block; font-weight: bold; margin: 14px 0 6px; color: var(--brown); }
input, select, textarea { font-family: inherit; font-size: 18px; padding: 12px 14px; border: 2px solid var(--cream2); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.pill { font-family: inherit; font-size: 17px; border: 2px solid var(--gold); background: #fff; color: var(--brown); border-radius: 999px; padding: 8px 16px; margin: 4px 4px 4px 0; cursor: pointer; }
.pill.on { background: var(--brown); color: #fff4dc; }
.ok { background: #e8f5e9; border: 2px solid var(--green); border-radius: 12px; padding: 14px; margin-top: 14px; }
.error { background: #fdecea; border: 2px solid var(--red); border-radius: 12px; padding: 14px; margin-top: 14px; }
.notice { background: var(--card); border: 2px solid var(--gold); border-radius: 14px; padding: 14px; margin-top: 14px; }
.cart-float { position: fixed; right: 14px; bottom: 14px; z-index: 10; background: var(--brown); color: #fff4dc; border: 2px solid var(--gold);
  border-radius: 999px; padding: 10px 18px; text-decoration: none; font-family: 'Playfair Display', Georgia, serif; box-shadow: 0 6px 16px rgba(0,0,0,.3); }

footer.site { position: relative; z-index: 1; text-align: center; padding: 26px 16px 40px; border-top: 2px solid var(--gold); background: var(--cream2); }
footer .logo-sm { width: 70px; height: 70px; border-radius: 50%; }
@media (max-width: 520px) { .hero h1 { font-size: 38px; } h2 { font-size: 28px; } .hero .logo { width: 140px; height: 140px; } }
