/* Flippy World — storefront styles (green edition) */
:root {
  --bg: #f5f3ee;
  --paper: #ffffff;
  --ink: #15201a;
  --ink-2: #4a554e;
  --ink-3: #87908a;
  --line: #e5e1d7;
  --line-2: #d6d0c2;

  --green: #1e5a41;
  --green-dark: #154431;
  --green-deep: #0f2a1f;
  --green-soft: #e3ede6;
  --mint: #b9dcc6;

  --pets: #c9741f;
  --pets-dark: #9c5512;
  --pets-soft: #f6eadb;
  --plants: #2c7650;
  --plants-dark: #1e5a41;
  --plants-soft: #e3ede6;

  --sun: #f0c04a;
  --sun-soft: #faf0d4;
  --danger: #b93c27;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(21, 32, 26, .05), 0 12px 28px -16px rgba(21, 32, 26, .22);
  --font-head: 'Bricolage Grotesque', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* kept for older markup */
  --lilac: var(--green);
  --lilac-dark: var(--green-dark);
  --lilac-soft: var(--green-soft);
  --sky: #2f6fdb;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15.5px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 650; line-height: 1.1; margin: 0; letter-spacing: -.025em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ---------- header ---------- */
.topbar { background: var(--green-deep); color: #cfe0d5; font-size: 13px; font-weight: 600; }
.topbar .wrap { display: flex; justify-content: center; gap: 28px; padding: 8px 0; flex-wrap: wrap; text-align: center; }
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar span::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--sun); }
@media (max-width: 760px) { .topbar span:nth-child(n+2) { display: none; } }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(245, 243, 238, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -.03em; width: max-content; }
.logo svg { width: 30px; height: 30px; flex: none; }
.logo b { color: var(--green); font-weight: 700; }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; padding: 8px 16px; border-radius: 8px; font-weight: 700; color: var(--ink-2); font-size: 14.5px; position: relative; }
.nav a:hover { color: var(--ink); background: rgba(21, 32, 26, .05); }
.nav a.on-pets, .nav a.on-plants { color: var(--ink); }
.nav a.on-pets::after, .nav a.on-plants::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--green); }
.nav a.on-pets::after { background: var(--pets); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
.link-orders { text-decoration: none; font-weight: 700; font-size: 14px; color: var(--ink-2); padding: 8px 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; }
.link-orders:hover { background: rgba(21, 32, 26, .05); color: var(--ink); }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 9px 14px; border-radius: 10px; }
.cart-btn:hover { background: var(--green-dark); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--sun); color: var(--ink); font-size: 12px; display: inline-grid; place-items: center; font-weight: 800; }
.cart-count[data-zero] { background: rgba(255, 255, 255, .18); color: #fff; }
.cart-bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.15); } }
.site-header .mobile-nav { display: none; }
@media (max-width: 760px) {
  .site-header .wrap { grid-template-columns: 1fr auto; height: 60px; }
  .nav { display: none; }
  .link-orders span { display: none; }
  .site-header .mobile-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0; height: auto; padding: 0; border-top: 1px solid var(--line); width: 100%; }
  .mobile-nav a { text-align: center; text-decoration: none; font-weight: 700; padding: 10px; color: var(--ink-2); border-bottom: 2px solid transparent; }
  .mobile-nav a.on-pets { color: var(--ink); border-color: var(--pets); }
  .mobile-nav a.on-plants { color: var(--ink); border-color: var(--plants); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-weight: 700; font-size: 15px; padding: 12px 20px; border-radius: 10px; background: var(--green); color: #fff; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn-pets { background: var(--pets); }
.btn-pets:hover { background: var(--pets-dark); }
.btn-plants { background: var(--plants); }
.btn-plants:hover { background: var(--plants-dark); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-light:hover { background: #eef3ef; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: #fbfaf7; border-color: var(--ink-3); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 13px; font-size: 14px; border-radius: 8px; }

/* ---------- hero ---------- */
.hero { padding: 24px 0 8px; }
.hero-box { background: var(--green-deep); color: #fff; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.hero-box::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .07; background-image: radial-gradient(circle at 12px 12px, #fff 3.5px, transparent 4.5px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.eyebrow i { width: 22px; height: 2px; background: var(--sun); display: inline-block; }
.hero h1 { font-size: clamp(36px, 4.8vw, 58px); margin: 18px 0 18px; font-weight: 600; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero p.lead { font-size: 17px; color: #c3d6ca; max-width: 500px; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); color: #a9c2b3; font-weight: 600; font-size: 13.5px; }
.hero-notes span { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes svg { width: 16px; height: 16px; color: var(--sun); }
.hero-tiles { display: grid; gap: 14px; }
.tile { display: grid; grid-template-columns: 1fr 132px; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); background: #fff; border-radius: 16px; padding: 22px 22px 22px 26px; transition: transform .2s, box-shadow .2s; min-height: 170px; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.tile.pets { background: var(--pets-soft); }
.tile.plants { background: var(--plants-soft); }
.tile .k { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.tile h2 { font-size: 32px; margin: 4px 0 6px; }
.tile.pets h2 { color: var(--pets-dark); }
.tile.plants h2 { color: var(--plants-dark); }
.tile .meta { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.tile .meta b { color: var(--ink); }
.tile .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 800; font-size: 14px; }
.tile .go svg { width: 16px; height: 16px; transition: transform .2s; }
.tile:hover .go svg { transform: translateX(3px); }
.tile .art { width: 132px; height: 132px; background: rgba(255, 255, 255, .6); border-radius: 50%; display: grid; place-items: center; }
.tile .art svg { width: 100px; }
@media (max-width: 960px) {
  .hero-box { grid-template-columns: 1fr; padding: 36px 26px; gap: 30px; border-radius: 18px; }
}
@media (max-width: 520px) {
  .hero { padding-top: 14px; }
  .hero-box { padding: 30px 20px; }
  .tile { grid-template-columns: 1fr 92px; padding: 18px; min-height: 0; }
  .tile .art { width: 92px; height: 92px; }
  .tile .art svg { width: 70px; }
  .tile h2 { font-size: 26px; }
}

/* ---------- sections ---------- */
.section { padding: 52px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); }
.section-head p { margin: 6px 0 0; color: var(--ink-2); }
.section-head .more { font-weight: 700; color: var(--green); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.section-head .more svg { width: 16px; height: 16px; }
.kicker { display: block; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }

/* browse by subcategory */
.browse { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.browse-col { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.browse-col header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.browse-col header h3 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.browse-col header h3 i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.browse-col.pets header h3 i { background: var(--pets); }
.browse-col.plants header h3 i { background: var(--plants); }
.browse-col header a { font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.browse-col header a:hover { color: var(--ink); }
.browse-col ul { list-style: none; margin: 0; padding: 6px 0; }
.browse-col li a { display: flex; align-items: center; justify-content: space-between; padding: 11px 22px; text-decoration: none; font-weight: 600; color: var(--ink); }
.browse-col li a:hover { background: #faf9f5; }
.browse-col li a span { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.browse-col li a svg { width: 16px; height: 16px; color: var(--ink-3); }
@media (max-width: 760px) { .browse { grid-template-columns: 1fr; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.step { padding: 26px 24px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step-n { font-family: var(--font-head); font-size: 14px; font-weight: 700; color: var(--green); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.step-n::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(2) { border-right: 0; } .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } .step { border-right: 0; border-bottom: 1px solid var(--line); } .step:last-child { border-bottom: 0; } }

/* ---------- product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
@media (max-width: 520px) { .grid { grid-template-columns: 1fr 1fr; gap: 10px; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.card-img { position: relative; aspect-ratio: 1; background: #f1efe9; display: grid; place-items: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-img .ph { width: 56%; opacity: .9; }
.card.pets .card-img { background: #f7f0e6; }
.card.plants .card-img { background: #ebf2ed; }
.badge-discount { position: absolute; top: 10px; left: 10px; background: var(--danger); color: #fff; font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 6px; }
.badge-stock { position: absolute; top: 10px; right: 10px; font-weight: 700; font-size: 11.5px; padding: 3px 8px; border-radius: 6px; background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.badge-stock.on_order { color: #7a5200; background: var(--sun-soft); border-color: #efdca2; }
.badge-stock.out { color: var(--danger); background: #fbe9e5; border-color: #f0c7be; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-sub { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.card-name { font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.25; letter-spacing: -.015em; }
.card-desc { font-size: 13.5px; color: var(--ink-2); margin: 2px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.price { font-weight: 800; font-size: 18px; white-space: nowrap; letter-spacing: -.01em; }
.price s { font-weight: 600; font-size: 13.5px; color: var(--ink-3); margin-left: 6px; }
.price.sale { color: var(--danger); }
.card-action { display: flex; }
.add-btn { border: 1px solid var(--line-2); cursor: pointer; width: 100%; height: 40px; border-radius: 9px; display: flex; align-items: center; justify-content: center; gap: 6px; background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; transition: background .15s, color .15s, border-color .15s; }
.add-btn:hover { background: var(--green); border-color: var(--green); color: #fff; }
.add-btn svg { width: 16px; height: 16px; }
.add-btn[disabled] { background: #f1efe9; color: var(--ink-3); cursor: not-allowed; border-color: var(--line); }
.qty { display: inline-flex; align-items: center; justify-content: space-between; border-radius: 9px; background: var(--green-soft); height: 40px; border: 1px solid #cfe0d5; }
.card-action .qty { width: 100%; }
.qty button { width: 38px; height: 38px; border: 0; background: none; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--green-dark); }
.qty span { min-width: 22px; text-align: center; font-weight: 800; color: var(--green-dark); }
@media (max-width: 520px) {
  .card-body { padding: 12px; }
  .card-name { font-size: 15px; }
  .price { font-size: 16px; }
  .price s { display: block; margin: 0; }
  .card-desc { display: none; }
  .add-btn .t { display: none; }
}

/* ---------- catalogue page ---------- */
.cat-hero { padding: 34px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.crumbs { font-size: 13.5px; color: var(--ink-3); font-weight: 600; margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.cat-hero h1 { font-size: clamp(32px, 4vw, 46px); }
.cat-hero p { margin: 8px 0 0; color: var(--ink-2); font-size: 16px; max-width: 560px; }
.shop { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; padding-bottom: 70px; }
.side-nav { position: sticky; top: 90px; }
.side-nav h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 10px; }
.cat-switch { display: grid; grid-template-columns: 1fr 1fr; background: #ebe8e0; border-radius: 10px; padding: 3px; margin-bottom: 24px; }
.cat-switch a { text-align: center; padding: 8px; border-radius: 8px; font-weight: 700; text-decoration: none; color: var(--ink-2); font-size: 14px; }
.cat-switch a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.chips { display: flex; flex-direction: column; gap: 2px; }
.chip { display: flex; align-items: center; justify-content: space-between; border: 0; background: none; border-radius: 8px; padding: 9px 12px; font-weight: 600; font-size: 14.5px; cursor: pointer; color: var(--ink-2); text-align: left; }
.chip small { color: var(--ink-3); font-weight: 700; font-size: 12.5px; }
.chip:hover { background: rgba(21, 32, 26, .05); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .7); }
body.pets .chip[aria-pressed="true"] { background: var(--pets); }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .count-line { margin: 0 auto 0 0; }
.search { position: relative; width: 240px; }
.search input { width: 100%; height: 40px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--paper); padding: 0 12px 0 36px; font-weight: 600; font-size: 14px; }
.search input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30, 90, 65, .12); }
.search svg { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--ink-3); }
.select { height: 40px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--paper); padding: 0 10px; font-weight: 600; font-size: 14px; }
.count-line { color: var(--ink-3); font-weight: 700; font-size: 14px; }
@media (max-width: 860px) {
  .shop { grid-template-columns: 1fr; gap: 16px; }
  .side-nav { position: static; }
  .side-nav h4 { display: none; }
  .cat-switch { display: none; }
  .chips { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; gap: 6px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 14px; }
  .search { flex: 1; width: auto; }
  .toolbar .count-line { flex-basis: 100%; order: 3; }
}

/* ---------- empty / notice ---------- */
.empty { text-align: center; padding: 56px 20px; background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty h3 { font-size: 21px; margin-bottom: 6px; }
.empty p { margin: 0 auto 18px; color: var(--ink-2); max-width: 420px; }

/* ---------- forms / panels ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.panel h2 { font-size: 21px; margin-bottom: 4px; }
.panel .sub { color: var(--ink-2); margin: 0 0 18px; font-size: 14.5px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: 13.5px; }
.field label small { font-weight: 600; color: var(--ink-3); }
.input, textarea.input { width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: 9px; padding: 11px 13px; font-weight: 500; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(30, 90, 65, .12); }
textarea.input { resize: vertical; min-height: 90px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.hint { font-size: 13px; color: var(--ink-3); margin: -4px 0 14px; }
.err { background: #fbe9e5; color: #8f2c1b; border: 1px solid #f0c7be; padding: 10px 13px; border-radius: 9px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- cart page ---------- */
.page-title { padding: 34px 0 22px; }
.page-title h1 { font-size: clamp(30px, 4vw, 42px); }
.page-title p { color: var(--ink-2); margin: 6px 0 0; }
.cart-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; padding-bottom: 60px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 68px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-img { width: 68px; height: 68px; border-radius: 10px; background: #f1efe9; display: grid; place-items: center; overflow: hidden; }
.line-img.pets { background: #f7f0e6; }
.line-img.plants { background: #ebf2ed; }
.line-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.line-img .ph { width: 70%; }
.line-name { font-weight: 700; }
.line-meta { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.line-right { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.line-total { font-weight: 800; }
.remove { border: 0; background: none; color: var(--ink-3); font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; padding: 0; }
.remove:hover { color: var(--danger); }
.summary { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--line-2); }
.summary b { font-size: 24px; font-family: var(--font-head); font-weight: 650; }
.summary-note { font-size: 13px; color: var(--ink-3); margin: 8px 0 0; }
.sticky-panel { position: sticky; top: 90px; }

/* ---------- order page ---------- */
.order-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 22px; align-items: start; padding-bottom: 60px; }
@media (max-width: 900px) { .order-layout { grid-template-columns: 1fr; } }
.status-pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 6px; background: #efece5; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-new { background: #e6eefb; color: #2556a8; }
.st-confirmed { background: var(--sun-soft); color: #7a5200; }
.st-ordered { background: #efe8f8; color: #5d3d97; }
.st-ready { background: var(--green-soft); color: var(--green-dark); }
.st-done { background: #ecebe8; color: #4f4a45; }
.st-cancelled { background: #fbe9e5; color: #8f2c1b; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: 20px 0 6px; }
.track div { height: 6px; border-radius: 3px; background: #ebe8e0; }
.track div.on { background: var(--green); }
.track-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.track-labels span.on { color: var(--ink); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } }
.fact { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; padding: 13px; border-radius: 10px; background: #f8f7f3; border: 1px solid var(--line); }
.fact .ic { width: 32px; height: 32px; border-radius: 8px; background: var(--green-soft); color: var(--green-dark); display: grid; place-items: center; }
.fact .ic svg { width: 17px; height: 17px; }
.fact dt { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.fact dd { margin: 2px 0 0; font-weight: 700; }
.fact dd.muted { color: var(--ink-3); font-weight: 600; font-size: 14px; }
.avail { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.avail.pending { background: #efece5; color: var(--ink-2); }
.avail.available { background: var(--green-soft); color: var(--green-dark); }
.avail.on_order { background: var(--sun-soft); color: #7a5200; }
.avail.unavailable { background: #fbe9e5; color: #8f2c1b; }
.linkbox { display: flex; gap: 8px; margin-top: 10px; }
.linkbox input { flex: 1; min-width: 0; font-size: 13px; }

/* chat */
.chat { display: flex; flex-direction: column; height: 600px; padding: 0; overflow: hidden; }
.chat-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.chat-head .av { width: 38px; height: 38px; border-radius: 10px; background: var(--green-soft); display: grid; place-items: center; flex: none; }
.chat-head .av svg { width: 24px; }
.chat-head b { display: block; }
.chat-head small { color: var(--ink-3); font-weight: 600; }
.msgs { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; background: #faf9f6; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 12px; white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; }
.msg time { display: block; font-size: 11px; font-weight: 600; opacity: .6; margin-top: 4px; }
.msg.me { align-self: flex-end; background: var(--green); color: #fff; border-bottom-right-radius: 4px; }
.msg.them { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.system { align-self: center; max-width: 92%; background: transparent; color: var(--ink-3); font-size: 12.5px; font-weight: 600; text-align: center; border: 1px dashed var(--line-2); border-radius: 10px; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.composer textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; }
.composer .btn { padding: 0 16px; }

/* ---------- footer ---------- */
.site-footer { background: var(--green-deep); color: #cfe0d5; margin-top: 50px; }
.site-footer .wrap { padding: 52px 0 26px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.site-footer .logo { color: #fff; }
.site-footer .logo b { color: var(--mint); }
.site-footer p { color: #98b3a3; margin: 14px 0 0; font-size: 14.5px; max-width: 340px; }
.site-footer h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #7f9d8c; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.contact-list a, .contact-list span { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; color: #fff; }
.contact-list a:hover { color: var(--sun); }
.contact-list svg { width: 17px; height: 17px; color: var(--sun); flex: none; }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-links a { text-decoration: none; color: #cfe0d5; font-weight: 600; }
.foot-links a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 18px; font-size: 13px; color: #7f9d8c; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; z-index: 90; background: var(--ink); color: #fff; font-weight: 700; font-size: 14.5px; padding: 12px 16px; border-radius: 10px; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .4); transition: opacity .2s, transform .2s; display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast a { color: var(--sun); white-space: nowrap; }

.skeleton { background: linear-gradient(90deg, #ebe8e0 25%, #f3f1ec 50%, #ebe8e0 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.shop > section, .shop > aside { min-width: 0; }
