/* The public shop at luckygoose.shop. Lucky's own pages use style.css; nothing here touches them. */
@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@500;600;700;800&display=swap");

/* Same colours and shapes as Lucky's own pages (lucky.css): mint, pastels, soft outlines, big round corners. */
:root {
  --bg: #f4fbf7;
  --card: #ffffff;
  --ink: #33475b;
  --muted: #5e7080;
  --line: #e1f1e8;
  --line-strong: #cfe9dc;
  --mint: #5fcfa0;
  --mint-hover: #4cbf90;
  --mint-ink: #143d2e;
  --mint-soft: #d6f3e4;
  --mint-pale: #eaf7f0;
  --butter: #ffd84d;
  --butter-hover: #f5c92c;
  --butter-soft: #fff1b8;
  --butter-ink: #4f3d00;
  --leaf-dark: #2f6b53;
  --danger: #b3342b;
  --danger-soft: #ffe1ec;
  --danger-ink: #6b2444;
  --radius: 28px;
  --radius-sm: 16px;
  --display: "Fredoka", "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--card); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 600 16px/1.55 var(--body); }
a { color: var(--leaf-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
:focus-visible { outline: 3px solid #f2a65a; outline-offset: 2px; border-radius: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font: 700 22px var(--display); white-space: nowrap; }
.logo img { width: 40px; height: 40px; }
.top form { flex: 1; display: flex; }
.top input[type=search] { width: 100%; font: 600 16px var(--body); padding: 9px 18px; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--bg); color: var(--ink); }
.top input[type=search]::placeholder { color: var(--muted); }
.top input[type=search]:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.cart-link { display: flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 800; color: var(--mint-ink); padding: 8px 14px; border-radius: 999px; background: var(--mint-soft); white-space: nowrap; }
.cart-link:hover { background: #cff1e0; }
.cart-link b { background: var(--butter-soft); color: #6b5200; border-radius: 999px; min-width: 22px; text-align: center; font-size: 13px; padding: 0 7px; }
@media (max-width: 620px) {
  .top .wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; }
  .top form { order: 3; flex-basis: 100%; }
  .logo span { font-size: 19px; }
  .cart-link { margin-left: auto; }
}

/* buttons and forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font: 800 16px var(--body); padding: 0 22px; border-radius: 999px; border: 2px solid var(--mint); cursor: pointer; text-decoration: none; background: var(--mint); color: var(--mint-ink); }
.btn:hover { background: var(--mint-hover); border-color: var(--mint-hover); }
.btn.honey { background: var(--butter); border-color: var(--butter); color: var(--butter-ink); }
.btn.honey:hover { background: var(--butter-hover); border-color: var(--butter-hover); }
.btn.ghost { background: var(--card); color: #24493a; border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--mint-pale); }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
label { font-weight: 800; display: block; margin-bottom: 4px; }
input, select, textarea { font: inherit; }
.field input, .field select { width: 100%; min-height: 46px; padding: 9px 14px; border-radius: var(--radius-sm); border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); font-weight: 600; }
.field input:focus, .field select:focus, .bar select:focus, .buybox .qty select:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.field { margin-bottom: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

/* flashes */
.flash { margin: 16px 0 0; padding: 12px 18px; border-radius: 22px; background: var(--mint-soft); color: #24493a; font-weight: 700; }
.flash.error { background: var(--danger-soft); color: var(--danger-ink); }

/* hero: a mint panel with Lucky, like the home page inside Lucky */
.hero { display: flex; align-items: center; gap: 24px; margin: 24px 0 6px; padding: 28px 36px; border-radius: 32px; background: var(--mint-soft); color: #24493a; overflow: hidden; }
.hero-text { flex: 1; }
.hero h1 { font-size: clamp(28px, 5vw, 42px); font-weight: 700; color: inherit; }
.hero p { margin: 8px 0 0; font-size: 18px; max-width: 520px; }
.hero-art { flex: none; }
.hero-art img { width: 150px; height: auto; }
@media (max-width: 560px) {
  .hero { padding: 20px 22px; gap: 14px; border-radius: 28px; }
  .hero p { font-size: 16px; }
  .hero-art img { width: 88px; }
}

/* category chips and sort */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 6px; scrollbar-width: none; }
.chip { flex: none; text-decoration: none; color: var(--ink); background: var(--card); border: 2px solid var(--line); padding: 6px 15px; border-radius: 999px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.chip:hover { border-color: var(--line-strong); }
.chip.on { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); }
.chip span { margin-left: 2px; padding: 0 7px; border-radius: 999px; background: var(--mint-pale); color: var(--muted); font-weight: 700; }
.chip.on span { background: #fff; color: var(--mint-ink); }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 14px; flex-wrap: wrap; }
.bar select { padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); font-weight: 700; }

/* grid of items */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; padding-bottom: 40px; }
@media (max-width: 420px) { .grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.tile { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .12s, border-color .12s; }
.tile:hover { transform: translateY(-2px); border-color: var(--mint); }
.tile .pic { aspect-ratio: 1; background: #fff; display: grid; place-items: center; padding: 12px; position: relative; }
.tile .pic img { max-height: 100%; object-fit: contain; }
.tile .pic .none { color: var(--muted); font-size: 13px; }
.tile .txt { padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; border-top: 2px solid var(--mint-pale); }
.tile .name { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { font: 700 21px var(--display); color: var(--ink); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.tag { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--mint-soft); color: #1e5a3e; }
.tag.honey { background: var(--butter-soft); color: #6b5200; }
@media (max-width: 420px) { .tile { border-radius: 22px; } }

/* empty states */
.empty { text-align: center; padding: 50px 0 70px; }
.empty img { width: 120px; height: auto; margin: 0 auto 16px; }
.empty img.full { width: 200px; }
.page > img { width: 110px; height: auto; margin-bottom: 14px; }

/* item page */
.item { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding: 24px 0 50px; }
@media (max-width: 800px) { .item { grid-template-columns: minmax(0, 1fr); gap: 18px; } }
.gallery .main { background: #fff; border: 2px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; padding: 18px; position: relative; }
/* a well-known brand's logo (or its name) in the photo's corner */
.brand-badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: rgba(255,255,255,.92); border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 9px; display: flex; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.brand-badge img { height: 26px; width: auto; max-width: 70px; display: block; }
.brand-badge.text { font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #333; padding: 6px 11px; }
.brand-badge.sm { top: 8px; left: 8px; padding: 4px 6px; border-radius: 9px; }
.brand-badge.sm img { height: 18px; max-width: 48px; }
.gallery .main img { max-height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: none; width: 64px; height: 64px; padding: 4px; background: #fff; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.thumbs button.on { border-color: var(--mint); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.buy h1 { font-size: clamp(22px, 3.4vw, 30px); }
.buy .price { font-size: 36px; margin: 10px 0 4px; }
.buybox { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.buybox .qty { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.buybox .qty select { padding: 8px 12px; border-radius: 999px; border: 2px solid var(--line-strong); background: var(--card); color: var(--ink); font-weight: 700; }
.amazon { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 20px; background: var(--butter-soft); color: var(--butter-ink); margin-top: 12px; font-size: 15px; }
.amazon-btn { margin-top: 12px; }
.price .was { color: var(--muted); margin-right: 10px; text-decoration: none; position: relative; display: inline-block; }
.price .was::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; border-top: 2px solid #e0332b; transform: rotate(-14deg); }
.lb-dim { position: fixed; inset: 0; background: rgba(20, 30, 40, .6); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.lb-dim[hidden] { display: none; }
.lb-box { position: relative; background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 24px; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.lb-box h2 { font: 700 24px var(--display); margin: 0 40px 10px 0; }
.lb-box ol { padding-left: 22px; margin: 0 0 12px; }
.lb-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--line); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.lb-x:hover { background: var(--mint-soft); }
.area-map { height: 260px; border-radius: 20px; border: 2px solid var(--line); margin-top: 12px; overflow: hidden; z-index: 0; }
.desc { white-space: pre-line; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 14px 0; }
.facts dt { color: var(--muted); font-weight: 800; }
.facts dd { margin: 0; }

/* cart */
.cart { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; padding: 24px 0 50px; align-items: start; }
@media (max-width: 820px) { .cart { grid-template-columns: minmax(0, 1fr); } }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px; background: var(--card); border: 2px solid var(--line); border-radius: 22px; margin-bottom: 10px; }
.line img, .line .ph { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 14px; }
.line .nm { font-size: 15px; line-height: 1.35; }
.line .nm a { color: var(--ink); text-decoration: none; }
.panel { background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel h2 { font-size: 22px; margin-bottom: 12px; }
.sum { display: flex; justify-content: space-between; font-weight: 800; font-size: 18px; margin: 4px 0 14px; }
.note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

/* thank-you and info pages */
.page { max-width: 680px; padding: 30px 0 60px; }
.page h1 { font-size: 32px; margin-bottom: 8px; }
.page h2 { font-size: 22px; margin: 24px 0 6px; }
.pickup { background: var(--butter-soft); color: var(--butter-ink); border-radius: var(--radius); padding: 18px 22px; margin: 16px 0; }
.pickup strong { display: block; font-size: 18px; }

/* footer */
.foot { border-top: 2px solid var(--line); background: var(--card); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot a { color: inherit; }
