:root {
  --slate: #1e2a32;
  --slate-soft: #46545e;
  --tin: #f4b400;
  --tin-dark: #c99300;
  --pipe: #0e6ba8;
  --paper: #f6f5f1;
  --card: #ffffff;
  --line: #dcd9d0;
  --danger: #b3261e;
  --ok: #1b6b3a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Mukta', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--slate);
  background: var(--paper);
}
h1, h2, h3 { font-family: 'Barlow Condensed', 'Mukta', sans-serif; line-height: 1.15; margin: 0 0 .5rem; }
h1 { font-size: 2.2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
a { color: var(--pipe); }
:focus-visible { outline: 3px solid var(--pipe); outline-offset: 2px; }

.page { max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem 3rem; }

/* header */
.site-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: .9rem 1.25rem;
  background: var(--slate); color: #fff;
  border-bottom: 6px solid var(--tin);
}
.brand { text-decoration: none; color: #fff; display: flex; flex-direction: column; }
.brand-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.8rem; letter-spacing: .5px; }
.brand-place { font-size: .85rem; color: #c9d2d8; }
.cart-link { color: #fff; text-decoration: none; font-weight: 600; }
.cart-count { display: inline-block; min-width: 1.6rem; padding: 0 .4rem; margin-left: .3rem; text-align: center; background: var(--tin); color: var(--slate); border-radius: 1rem; }

/* intro + filters */
.intro { margin-bottom: 1.25rem; max-width: 640px; }
.intro p { color: var(--slate-soft); margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.filters input, .filters select, .form input, .form textarea {
  font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: inherit;
}
.filters input { flex: 1 1 220px; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; }
.card-thumb { height: 92px; display: flex; align-items: flex-end; padding: .6rem .8rem; color: #fff; font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 700; }
.card-body { padding: .8rem; display: flex; flex-direction: column; flex: 1; }
.card-body .desc { font-size: .92rem; color: var(--slate-soft); flex: 1; margin: .3rem 0 .8rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.price { font-size: 1.25rem; }
.muted { color: var(--slate-soft); font-size: .9rem; margin: 0; }

/* buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
  padding: .6rem 1.1rem; border: 0; border-radius: 6px; background: var(--tin); color: var(--slate);
}
.btn:hover:not(:disabled) { background: var(--tin-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* cart */
.table-wrap { overflow-x: auto; }
.cart-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.cart-table th, .cart-table td { padding: .7rem; text-align: left; border-bottom: 1px solid var(--line); }
.qty { display: inline-flex; align-items: center; gap: .6rem; }
.qty button { width: 2rem; height: 2rem; font-size: 1.1rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.total { font-size: 1.2rem; margin: 1rem 0; }

/* checkout / order */
.checkout { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 800px) { .checkout { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.form { display: flex; flex-direction: column; gap: .9rem; }
.form label { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; }
.summary, .order { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.1rem; }
.summary ul, .lines { list-style: none; padding: 0; margin: 0; }
.summary li, .lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); }
.pay { margin-top: 1.25rem; padding-top: 1rem; border-top: 2px solid var(--tin); }
.qr { margin: 1rem 0; padding: .8rem; background: #fff; display: inline-block; border: 1px solid var(--line); }
.notice { padding: .8rem 1rem; background: #fff7dc; border-left: 5px solid var(--tin); }
.notice.ok { background: #e6f4ea; border-color: var(--ok); }
.error { color: var(--danger); font-weight: 600; }

.site-footer { padding: 1.5rem 1rem; text-align: center; color: var(--slate-soft); font-size: .9rem; border-top: 1px solid var(--line); }
.site-footer p { margin: .2rem 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* static-site additions */
.brand, .cart-link, a.btn { text-decoration: none; }
.pay h2 { margin-top: 1.2rem; }
.qr img, .qr canvas { display: block; }

/* add-to-cart feedback */
.toast {
  position: fixed; left: 50%; bottom: 5.2rem; transform: translateX(-50%);
  max-width: 90vw; padding: .6rem 1rem; border-radius: 6px;
  background: var(--slate); color: #fff; font-weight: 600; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.toast:not(:empty) { opacity: 1; }
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: .9rem 1rem; text-align: center; text-decoration: none;
  background: var(--tin); color: var(--slate); font-weight: 700; font-size: 1.05rem;
  border-top: 3px solid var(--slate);
}
.page { padding-bottom: 5rem; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* phone number, payment methods, order actions */
.header-right { display: flex; align-items: center; gap: 1.1rem; }
.header-call { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .header-call { display: none; } }
.call-row { margin: .8rem 0 0; }
.call { display: inline-block; padding: .55rem 1rem; border: 2px solid var(--slate); border-radius: 6px; color: var(--slate); font-weight: 700; text-decoration: none; }
.call:hover { background: var(--slate); color: #fff; }
.site-footer a { color: inherit; }

.methods { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.methods legend { font-weight: 600; padding: 0; margin-bottom: .4rem; }
.method { display: flex; flex-direction: row !important; align-items: flex-start; gap: .7rem !important; padding: .7rem .8rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font-weight: 400 !important; }
.method.on { border-color: var(--pipe); background: #eef6fb; }
.method input { margin-top: .35rem; width: auto; }
.method span { display: flex; flex-direction: column; }
.method small { color: var(--slate-soft); font-size: .88rem; }

.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.btn.secondary { background: #fff; color: var(--slate); border: 2px solid var(--slate); }
.btn.secondary:hover:not(:disabled) { background: var(--slate); color: #fff; }
