:root {
  --bg: #0a1a14;
  --bg2: #0e2219;
  --card: #11271d;
  --line: #21402f;
  --text: #f3ecda;
  --muted: #a9b59f;
  --accent: #c8a55a;
  --accent-ink: #0e3b2c;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Inter, system-ui, sans-serif; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

.demo-banner {
  background: #ffcc00; color: #111; text-align: center; font-size: 13px; font-weight: 600; padding: 8px 16px;
}
.demo-banner code { background: rgba(0,0,0,.1); padding: 1px 6px; border-radius: 4px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10,26,20,.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Bebas Neue'; font-size: 30px; letter-spacing: 2px; }
.logo.small { font-size: 24px; }
.logo-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: 26px;
}
.nav { display: flex; gap: 24px; flex: 1; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--text); }
.mydl-btn {
  background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font: 600 14px Inter; cursor: pointer; display: flex; gap: 8px; align-items: center;
}
.mydl-btn:hover { border-color: var(--accent); }
.count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 8px; font-size: 12px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 75% 40%, rgba(200,165,90,.12), transparent 55%), linear-gradient(180deg, #0e3b2c, var(--bg)); }
.pitch-lines {
  position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background:
    radial-gradient(circle at 50% 50%, transparent 159px, #fff 160px, #fff 162px, transparent 163px),
    linear-gradient(90deg, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px));
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 80px 24px 90px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700; color: var(--accent); margin: 0 0 14px; }
h1 { font-family: 'Bebas Neue'; font-weight: 400; font-size: clamp(56px, 8vw, 104px); line-height: .92; margin: 0 0 22px; letter-spacing: 1px; }
h1 span { color: var(--accent); }
.lead { font-size: 18px; color: #d9d0b8; max-width: 520px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-shirt svg { width: 100%; max-width: 380px; display: block; margin: 0 auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); transform: rotate(4deg); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font: 700 15px Inter; text-decoration: none; cursor: pointer; border: 0;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px rgba(200,165,90,.25); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn-paypal { width: 100%; background: #ffc439; color: #111; font-size: 16px; padding: 15px; border-radius: 8px; }
.btn-block { width: 100%; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 56px; padding-bottom: 24px; }
.step { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n { font-family: 'Bebas Neue'; font-size: 40px; color: var(--accent); line-height: 1; }
.step h3 { margin: 10px 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* Shop */
#shop { padding-top: 48px; padding-bottom: 40px; scroll-margin-top: 80px; }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.shop-head h2 { font-family: 'Bebas Neue'; font-weight: 400; font-size: 48px; margin: 0; letter-spacing: 1px; }
.shop-head h2 small { font-family: Inter; font-size: 15px; color: var(--muted); letter-spacing: 0; }
.shop-tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--bg2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  padding: 8px 14px; font: 600 13px Inter; cursor: pointer;
}
.chip.active, .chip:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
#search {
  background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 999px;
  padding: 10px 18px; font: 14px Inter; width: 260px; outline: none;
}
#search:focus { border-color: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: #3a5a47; box-shadow: 0 20px 40px rgba(0,0,0,.4); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: linear-gradient(160deg, #163326, #0c1d16); display: grid; place-items: center; overflow: hidden; }
.card-img svg { width: 78%; transition: transform .3s; }
.card:hover .card-img svg { transform: scale(1.05) rotate(-2deg); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--accent-ink);
  font: 800 11px Inter; letter-spacing: 1px; padding: 4px 8px; border-radius: 6px;
}
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.card h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font: 700 11px Inter; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: #d9d0b8; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 6px; }
.price { font-family: 'Bebas Neue'; font-size: 30px; letter-spacing: .5px; }
.card .buy {
  background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 9px 16px; font: 800 13px Inter; cursor: pointer;
}
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* FAQ */
.faq { padding-top: 40px; padding-bottom: 80px; max-width: 820px; }
.faq h2 { font-family: 'Bebas Neue'; font-weight: 400; font-size: 44px; margin: 0 0 16px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }
details a { color: var(--accent); }

.footer { border-top: 1px solid var(--line); background: var(--bg2); padding: 36px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer p { margin: 6px 0 0; }
.footer a { color: var(--muted); }
.pay-icons { display: flex; gap: 8px; }
.pay-icons span { border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; font-weight: 700; font-size: 12px; color: #d9d0b8; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: min(960px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; animation: pop .2s ease-out;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal-x {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 22px; cursor: pointer;
}
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-preview { background: linear-gradient(160deg, #163326, #0c1d16); display: grid; place-items: center; padding: 30px; min-height: 420px; }
.modal-preview svg { width: 90%; max-width: 380px; }
.modal-preview img { width: 100%; border-radius: 12px; }
.modal-info { padding: 34px 32px; display: flex; flex-direction: column; gap: 14px; }
.modal-info h2 { margin: 0; font-size: 28px; line-height: 1.15; }
.modal-info p { margin: 0; }
.charset { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 26px; line-height: 1.25; word-break: break-all; letter-spacing: 1px; }
.price-row { display: flex; align-items: baseline; gap: 12px; }
.price-row .price { font-size: 44px; color: var(--accent); }
.secure { font-size: 12px; color: var(--muted); text-align: center; margin-top: 10px !important; }
#paypalButtons { min-height: 50px; }

.success { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.success h3 { margin: 0; }
.check { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 28px; font-weight: 800; }

/* Drawer */
#drawer, #cartDrawer { place-items: stretch end; padding: 0; }
.drawer-card { position: relative; width: min(420px, 100%); height: 100%; background: var(--bg2); border-left: 1px solid var(--line); padding: 28px; overflow: auto; animation: slide .2s ease-out; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-card h2 { font-family: 'Bebas Neue'; font-weight: 400; font-size: 36px; margin: 0 0 20px; }
.dl-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.dl-item b { display: block; font-size: 15px; }
.dl-item span { font-size: 12px; color: var(--muted); }
.dl-item a { background: var(--accent); color: var(--accent-ink); text-decoration: none; font: 700 13px Inter; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }

@media (max-width: 860px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 50px 24px 60px; }
  .hero-shirt { order: -1; }
  .hero-shirt svg { max-width: 220px; }
  .steps { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-preview { min-height: 260px; }
  #search { width: 100%; }
}

/* Categories */
.cats { padding-top: 56px; scroll-margin-top: 80px; }
.section-title { font-family: 'Bebas Neue'; font-weight: 400; font-size: 48px; margin: 0 0 20px; letter-spacing: 1px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cat-tile {
  position: relative; display: flex; flex-direction: column; gap: 6px; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px;
  transition: transform .2s, border-color .2s;
}
.cat-tile:hover { transform: translateY(-3px); border-color: var(--accent); }
.flag { display: flex; width: 42px; height: 28px; border-radius: 5px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.15); margin-bottom: 6px; }
.flag i { flex: 1; }
.cat-tile b { font-size: 18px; }
.cat-subs { font-size: 13px; color: var(--muted); line-height: 1.4; }
.cat-count { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--accent); }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 6px; min-height: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { color: var(--text); }
#chips { margin-bottom: 24px; }
.chip em { font-style: normal; opacity: .6; margin-left: 4px; }
.shop-head { margin-bottom: 16px; }
.nav { gap: 20px; }

/* Real font previews (landscape PDF renders) */
.card-img { aspect-ratio: 1200 / 848; }
.card-img svg { width: auto; height: 86%; }
.card-img img { object-fit: cover; }
.modal-grid.has-image { grid-template-columns: 1.35fr 1fr; }
.modal-grid.has-image .modal-preview { padding: 0; background: #fff; min-height: 0; align-content: center; }
.modal-grid.has-image .modal-preview img { border-radius: 0; display: block; }
@media (max-width: 860px) { .modal-grid.has-image { grid-template-columns: 1fr; } }
.more-btn { display: flex; margin: 28px auto 0; }
img.flag { object-fit: cover; display: block; }
/* PDF previews come in different shapes: show them whole */
.card-img img { object-fit: contain; background: #fff; }
.flag-icon { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 16px; }

/* ---------- static SEO pages (font / club / competition) ---------- */
.seo-main { padding: 32px 24px 64px; }
.seo-main .lead { color: var(--muted); margin: -8px 0 24px; }
.seo-main .card { text-decoration: none; color: inherit; }
.font-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; margin: 12px 0 48px; align-items: start; }
.font-shot { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.font-shot img { display: block; width: 100%; height: auto; }
.font-info h1 { font-family: 'Bebas Neue'; font-weight: 400; font-size: 52px; line-height: 1; margin: 8px 0 12px; letter-spacing: 1px; }
.font-info p { color: var(--muted); }
.font-facts { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 8px; font-size: 15px; }
.font-info .btn-primary { margin: 18px 0 10px; text-align: center; font-size: 17px; padding: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.club-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.club-list a { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; text-decoration: none; color: var(--text); font-size: 14px; }
.club-list a:hover { border-color: var(--accent); color: var(--accent); }
.club-list span { color: var(--muted); margin-left: 4px; font-size: 12px; }
.seo-links { margin-top: 28px; font-size: 13px; line-height: 2; }
.seo-links strong { color: var(--text); margin-right: 8px; }
.seo-links a { margin-right: 12px; white-space: nowrap; }
@media (max-width: 820px) { .font-hero { grid-template-columns: 1fr; } .font-info h1 { font-size: 42px; } }

/* ---------- top-bar search ---------- */
.top-search { position: relative; width: 260px; }
.top-search input {
  width: 100%; background: var(--bg2, #111814); color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px 9px 38px; font: 500 14px Inter; outline: none; transition: border-color .15s, width .2s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238a9a91' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5.5'/%3E%3Cpath d='M11 11l3.5 3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 14px center;
}
.top-search input:focus { border-color: var(--accent); }
.top-search input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.ts-results {
  position: absolute; right: 0; top: calc(100% + 8px); width: 400px; max-width: calc(100vw - 32px);
  background: #0e2219; border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55); z-index: 40;
}
.ts-results a, .ts-all {
  display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; text-decoration: none; color: var(--text);
}
.ts-results a:hover, .ts-results a.active, .ts-all:hover, .ts-all.active { background: rgba(200,165,90,.08); }
.ts-results img, .ts-ph { width: 64px; height: 45px; object-fit: contain; background: #fff; border-radius: 6px; flex: none; }
.ts-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ts-txt strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-txt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-price { font-family: 'Bebas Neue'; font-size: 20px; color: var(--accent); }
.ts-all { width: 100%; justify-content: center; background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; font: 600 13px Inter; color: var(--accent); cursor: pointer; margin-top: 4px; }
.ts-empty { padding: 14px; color: var(--muted); font-size: 14px; }
.seo-page .top-search { margin-left: auto; }
@media (max-width: 860px) {
  .topbar-inner { gap: 12px; }
  .top-search { flex: 1; width: auto; }
  .mydl-btn { padding: 8px 12px; }
}
@media (max-width: 520px) { .logo span:last-child { display: none; } }

/* ---------- top menu with dropdowns ---------- */
.nav { align-items: center; gap: 4px; min-width: 0; }
.nav > a, .mbtn {
  white-space: nowrap; padding: 8px 12px; border-radius: 999px; background: none; border: 0; cursor: pointer;
  color: var(--muted); font: 500 15px Inter; text-decoration: none; transition: color .15s, background .15s;
}
.nav > a:hover, .mbtn:hover, .mgroup:hover .mbtn, .mgroup.open .mbtn { color: var(--text); background: rgba(255,255,255,.06); }
.mbtn i { font-style: normal; font-size: 11px; opacity: .7; margin-left: 2px; display: inline-block; transition: transform .15s; }
.mgroup { position: relative; }
.mgroup:hover .mbtn i, .mgroup.open .mbtn i { transform: rotate(180deg); }
.mdrop {
  position: absolute; left: 0; top: 100%; z-index: 50; margin-top: 10px;
  display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(210px, 1fr)); gap: 2px;
  background: #0e2219; border: 1px solid var(--line); border-radius: 14px; padding: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55); max-height: 70vh; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.mdrop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge */
.mdrop-r { left: auto; right: 0; }
.mgroup:hover .mdrop, .mgroup.open .mdrop, .mgroup:focus-within .mdrop { opacity: 1; visibility: visible; transform: none; }
.mdrop a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; text-decoration: none; color: var(--text); font-size: 14px; }
.mdrop a:hover, .mdrop a:focus { background: rgba(200,165,90,.08); color: var(--accent); outline: none; }
.mdrop a span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdrop a small { color: var(--muted); font-size: 12px; }
.mdrop .mall { grid-column: 1 / -1; font-weight: 600; color: var(--accent); border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; margin-bottom: 4px; }
.mflag { width: 22px; height: 15px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.mflag-x { display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font: 800 10px Inter; }
.mydl-btn { white-space: nowrap; }
.topbar-inner { gap: 20px; }
.top-search { width: 220px; flex: none; }
@media (max-width: 1240px) { .nav > a:first-child { display: none; } }
@media (max-width: 1120px) { .mbtn { padding: 8px 8px; font-size: 14px; } .top-search { width: 180px; } }
@media (max-width: 860px) { .top-search { flex: 1; width: auto; } }
.nav { flex: 1 0 auto; }
.dl-ico { display: none; }
@media (max-width: 1240px) { .dl-txt { display: none; } .dl-ico { display: block; } .mydl-btn { padding: 8px 12px; } }
@media (max-width: 1060px) { .mbtn { padding: 8px 7px; font-size: 14px; } .top-search { width: 160px; } .topbar-inner { gap: 14px; } }
@media (max-width: 960px) { .mgroup:last-child { display: none; } }
@media (max-width: 1060px) { .mbtn { padding: 8px 5px; } .top-search { width: 140px; } .topbar-inner { gap: 12px; } }
/* wide (multi-column) dropdowns: centred under the whole top bar */
.topbar-inner { position: relative; }
.mgroup:has(.mdrop-wide) { position: static; }
.mdrop-wide { left: 50%; top: 100%; margin-top: -6px; width: max-content; max-width: 100%; transform: translate(-50%, -4px); }
.mgroup:hover .mdrop-wide, .mgroup.open .mdrop-wide, .mgroup:focus-within .mdrop-wide { transform: translate(-50%, 0); }
.mdrop-wide::before { top: -20px; height: 20px; }
@media (max-width: 1400px) { .nav > a:first-child { display: none; } .dl-txt { display: none; } .dl-ico { display: block; } .mydl-btn { padding: 8px 12px; } }
@media (max-width: 960px) and (min-width: 861px) { .top-search { width: 120px; } .logo { font-size: 26px; } }

/* ---------- phone menu (☰) ---------- */
.burger { display: none; flex: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: none; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 0; }
.burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); }
.mmenu { position: fixed; inset: 0; z-index: 100; }
.mmenu[hidden] { display: none; }
.mm-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.6); animation: mmFade .2s; }
.mm-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(340px, 88vw); background: var(--bg2); border-right: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain; padding: 0 0 32px; animation: mmSlide .22s ease-out; }
.mm-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; background: var(--bg2); border-bottom: 1px solid var(--line); z-index: 1; }
.mm-head strong { font-family: 'Bebas Neue'; font-weight: 400; font-size: 26px; letter-spacing: 1px; }
.mm-x { background: none; border: 1px solid var(--line); color: var(--text); width: 36px; height: 36px; border-radius: 10px; font-size: 22px; line-height: 1; cursor: pointer; }
.mm-top { display: block; padding: 16px 18px; font-weight: 700; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--line); }
.mm-panel details { border-bottom: 1px solid var(--line); }
.mm-panel summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; font-weight: 600; cursor: pointer; }
.mm-panel summary::-webkit-details-marker { display: none; }
.mm-panel summary i { font-style: normal; font-size: 12px; color: var(--muted); transition: transform .15s; }
.mm-panel details[open] summary { color: var(--accent); }
.mm-panel details[open] summary i { transform: rotate(180deg); }
.mm-links { padding: 0 10px 12px; display: grid; gap: 2px; }
.mm-links a { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: 15px; }
.mm-links a:active, .mm-links a:hover { background: rgba(200,165,90,.08); }
.mm-links a span { flex: 1; }
.mm-links a small { color: var(--muted); font-size: 12px; }
.mm-links .mall { color: var(--accent); font-weight: 600; }
html.mm-open { overflow: hidden; }
@keyframes mmSlide { from { transform: translateX(-100%); } }
@keyframes mmFade { from { opacity: 0; } }
@media (max-width: 860px) { .burger { display: flex; } }

/* ---------- cart ---------- */
.cart-btn {
  position: relative; display: flex; align-items: center; gap: 8px; white-space: nowrap; flex: none;
  background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; font: 600 14px Inter; cursor: pointer; text-decoration: none;
}
.cart-btn:hover, .cart-btn.has-items { border-color: var(--accent); }
.cart-btn .count { transition: transform .2s; }
@media (max-width: 1400px) { .cart-txt { display: none; } .cart-btn { padding: 8px 12px; } }
.seo-page .top-search + .cart-btn { margin-left: 0; }
.card .buy.in-cart { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.add-cart.in-cart { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.add-cart { margin-bottom: 8px; }
.bulk-hint { font-size: 13px; color: var(--muted); margin: 6px 0 14px; }
.bulk-hint b { color: var(--accent); font-weight: 700; }
.or-line { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 4px 0 12px; text-transform: uppercase; letter-spacing: 1px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cart-card { display: flex; flex-direction: column; }
.cart-list { display: grid; gap: 8px; margin: 8px 0 16px; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
.cart-item img, .cart-item .ts-ph { width: 72px; height: 51px; object-fit: contain; background: #fff; border-radius: 6px; flex: none; }
.ci-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ci-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-txt small { color: var(--muted); font-size: 12px; }
.ci-price { font-family: 'Bebas Neue'; font-size: 22px; }
.ci-x { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; padding: 0 4px; line-height: 1; }
.ci-x:hover { color: #ff6b6b; }
.bulk-nudge { background: rgba(200,165,90,.08); border: 1px dashed rgba(200,165,90,.45); color: var(--text); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.bulk-nudge b { color: var(--accent); }
.cart-sum { display: grid; gap: 8px; margin-bottom: 16px; font-size: 15px; }
.cart-sum > div { display: flex; justify-content: space-between; }
.cart-sum .disc { color: var(--accent); font-weight: 600; }
.cart-sum .total { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 800; font-size: 18px; }
.cart-sum .total span:last-child { font-family: 'Bebas Neue'; font-size: 32px; font-weight: 400; color: var(--accent); }
.cart-success { text-align: center; }
.font-info .add-cart { margin: 18px 0 8px; font-size: 17px; padding: 16px; }
.font-info .btn-ghost.btn-block { text-align: center; }
@media (max-width: 520px) {
  .topbar-inner { gap: 8px; }
  .cart-btn, .mydl-btn { padding: 7px 9px; gap: 4px; }
  .cart-btn .count, .mydl-btn .count { padding: 0 6px; }
  .top-search input { padding-left: 34px; padding-right: 8px; background-position: 11px center; }
}
/* cart: long font names wrap instead of pushing the price off-screen */
.cart-list { grid-template-columns: minmax(0, 1fr); }
.cart-item { min-width: 0; }
.ci-txt b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.ci-price { flex: none; white-space: nowrap; }
.ci-x { flex: none; }
.dl-item { min-width: 0; }
.dl-item > div { min-width: 0; }

/* ---------- Kitfont crest logo ---------- */
.logo-crest { display: block; height: 48px; width: auto; flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.logo.small .logo-crest { height: 40px; }
.logo { color: #EADFC4; }

/* green + gold (matches the KITFONT crest) */
::selection { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #d6b66c; }
.hero-shirt svg path:nth-of-type(3) { stroke: var(--accent); }
.hero-shirt svg path:first-of-type { stroke: rgba(200,165,90,.55); stroke-width: 3; }

/* ---------- competition tiles: only the big ones until "Show all" ---------- */
.cat-grid .cat-tile.extra { display: none; }
.cat-grid.expanded .cat-tile.extra { display: flex; }
.cat-more { display: block; margin: 18px auto 0; }

/* ---------- filter bar under "All fonts" ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 24px; }
.filters select {
  appearance: none; -webkit-appearance: none; background: var(--bg2); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 34px 9px 14px; font: 500 14px Inter; cursor: pointer; max-width: 260px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23c8a55a' stroke-width='1.6'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.filters select:hover, .filters select:focus { border-color: var(--accent); outline: none; }
.filters select:disabled { opacity: .45; cursor: not-allowed; }
.fnew { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; padding: 0 4px; }
.fnew input { accent-color: var(--accent); width: 16px; height: 16px; }
.freset { background: none; border: 0; color: var(--accent); font: 600 14px Inter; cursor: pointer; text-decoration: underline; padding: 0 4px; }
@media (max-width: 640px) {
  .filters { display: grid; grid-template-columns: 1fr 1fr; }
  .filters select { max-width: none; width: 100%; }
}
.cat-more-tile { cursor: pointer; text-align: left; font: inherit; color: var(--text); border-style: dashed; border-color: rgba(200,165,90,.5); background: rgba(200,165,90,.06); }
.cat-more-tile .more-n { font-family: 'Bebas Neue'; font-size: 34px; line-height: 1; color: var(--accent); }
.cat-grid.expanded .cat-more-tile { justify-content: center; align-items: center; text-align: center; }

/* ---------- Legal pages + footer ---------- */
.legal { max-width: 760px; line-height: 1.65; }
.legal h1 { font-family: "Bebas Neue", Inter, sans-serif; font-size: 44px; letter-spacing: .5px; margin: 8px 0 4px; }
.legal h2 { font-size: 18px; margin: 28px 0 6px; color: var(--accent); }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); }
.legal blockquote { margin: 12px 0; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--card); border-radius: 8px; color: var(--muted); }
.legal-updated { color: var(--muted) !important; font-size: 13px; margin-top: 0; }
.legal-foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; }
.legal-foot nav a { color: var(--text); }
.legal-foot p { margin: 8px 0 0; color: var(--muted); }

/* ---------- Checkout consent ---------- */
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(200,165,90,.06); font-size: 13px; line-height: 1.5; color: var(--text); cursor: pointer; text-align: left; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--accent); }
.consent.need { border-color: #e0795a; box-shadow: 0 0 0 3px rgba(224,121,90,.18); animation: kt-shake .35s; }
.pay-locked { opacity: .5; filter: grayscale(.4); }
@keyframes kt-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
