/* ModernMC shop page styles */
:root {
    --nav: #000000;
    --cyan: #1cc7e3;
    --cyan-soft: #69def6;
    --blue: #1f6fd1;
    --blue-hi: #2b8fe0;
    --body: #2c2a2a;
    --card: #242222;
    --card-line: #464242;
    --text: #d8e0e4;
    --muted: #bdc9ce;
    --white: #ffffff;
    color-scheme: dark;
  }
  * { box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body {
    margin: 0;
    font-family: "Inter", "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    color: var(--text);
    background: var(--body);
    line-height: 1.6;
    min-height: 100vh;
  }
  h1, h2, h3, .serif { font-family: "Marcellus", Georgia, serif; font-weight: 400; color: var(--white); margin: 0; line-height: 1.15; }
  a { color: inherit; }
  :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

  /* ---------- Top nav ---------- */
  .nav {
    position: sticky; top: 0; z-index: 20;
    background: var(--nav);
    display: flex; align-items: stretch; justify-content: space-between;
    min-height: 100px;
    padding: 0 max(15px, calc((100vw - 1170px) / 2));
    padding-top: env(safe-area-inset-top, 0px);
    box-shadow: 0 2px 2px rgba(50, 50, 50, .24);
  }
  .brand {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
    color: #f4fbfc; font-family: "Marcellus", serif; font-size: 23px;
    letter-spacing: .08em;
    background: linear-gradient(105deg, #a5f3ff, #48c8f2 48%, #1765d1);
    background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  }
  .brand .badge-mmc {
    width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
    background: url("../img/server-icon.webp") center / cover no-repeat;
    border: 1px solid rgba(72, 200, 242, .7);
    box-shadow: 0 0 12px rgba(23, 101, 209, .35);
    font-size: 0;
  }
  .links { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; height: 100px; }
  .links a {
    display: flex; align-items: center; gap: .4rem; height: 100%;
    padding: 0 .8rem; text-decoration: none; color: #acacac;
    font-weight: 600; font-size: .92rem; transition: color .15s ease, background .15s ease;
  }
  .links a:hover { color: #1cc7e3; background: transparent; }
  .links a[aria-current="page"] { background: #1cc7e3; color: #fff; }
  .links svg { width: 14px; height: 14px; fill: currentColor; }
  .menu-toggle { display: none; background: none; border: 1px solid #464242; border-radius: 4px; color: var(--white); font-size: 1.4rem; cursor: pointer; }

  /* ---------- Hero ---------- */
  .hero {
    position: relative; overflow: hidden; text-align: center;
    padding: 64px 1.25rem 72px;
    background:
      linear-gradient(110deg, rgba(8, 21, 36, .88), rgba(6, 63, 105, .7)),
      url("../img/cathidral.webp") center / cover no-repeat;
  }
  .eyebrow {
    display: block; color: #69def6; letter-spacing: .16em; text-transform: uppercase;
    font-size: 12px; font-weight: 800; margin-bottom: .6rem;
  }
  .hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.4rem); text-shadow: 0 3px 16px rgba(0, 0, 0, .55); }
  .hero p { max-width: 640px; margin: 1rem auto 0; font-size: 1.1rem; color: #e3f6ff; text-shadow: 0 2px 8px rgba(0, 0, 0, .5); }
  .hero .cta { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.8rem; }
  .btn {
    display: inline-flex; align-items: center; gap: .45rem; text-decoration: none;
    background: linear-gradient(105deg, #26bfe8, #1765d1);
    color: var(--white); font-weight: 700; padding: .7rem 1.25rem; border-radius: 4px;
    border: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.4);
  }
  .btn:hover { filter: brightness(1.08); }
  .btn.ghost {
    background: rgba(7, 22, 38, .72); color: var(--text); font-weight: 600;
    border: 1px solid rgba(126, 220, 255, .45);
  }
  .btn.ghost:hover { border-color: var(--cyan); color: var(--white); }
  .hero-accent { color: var(--cyan-soft); }
  .cart-toggle { align-self: center; padding: .4rem .9rem; margin-left: .5rem; }

  /* ---------- Shop ---------- */
  main { max-width: 1120px; margin: 0 auto; padding: 38px 15px 52px; }
  .section-head { text-align: center; margin-bottom: 2.25rem; }
  .section-head .eyebrow { margin-bottom: .4rem; }
  .section-head h2 { font-size: 2rem; }
  .section-head p { color: var(--muted); margin: .6rem auto 0; max-width: 560px; }
  .section-head .rank-note {
    max-width: 780px;
    margin: 1.25rem auto 0;
    padding: .75rem 1rem;
    border-left: 4px solid #48c8f2;
    border-radius: 2px;
    background: #242222;
    color: #cbd7db;
    font-size: .9rem;
    text-align: left;
  }
  .section-head .shop-disclaimer {
    max-width: 780px;
    margin: 1.25rem auto 0;
    padding: .8rem 1rem;
    border: 1px solid rgba(72, 200, 242, .45);
    border-radius: 4px;
    background: linear-gradient(110deg, #242222, #162b3a);
    color: #e3f6ff;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .035em;
  }
  .filters { display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; }
  .filter {
    background: transparent; color: var(--text);
    border: 1px solid var(--card-line); border-radius: 3px;
    padding: .4rem .95rem; font: 600 .9rem "Inter", sans-serif; cursor: pointer;
  }
  .filter:hover { border-color: var(--cyan); color: var(--white); }
  .filter[aria-pressed="true"] { background: var(--cyan); border-color: var(--cyan); color: #fff; }

  .grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }
  .card {
    display: flex; flex-direction: column;
    background: linear-gradient(145deg, #292727, #211f1f); border: 1px solid var(--card-line); border-radius: 5px;
    padding: 1.5rem 1.35rem 1.35rem;
    transition: border-color .2s ease, transform .2s ease;
  }
  .card:hover { border-color: rgba(72, 200, 242, .7); transform: translateY(-3px); }
  .card .icon {
    width: 48px; height: 48px; margin-bottom: 1rem;
    color: var(--cyan);
    display: grid; place-items: center;
  }
  .card .icon svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
  .card h3 { font-size: 1.25rem; min-height: 1.15em; }
  .card p { color: var(--muted); font-size: .94rem; margin: .5rem 0 1.2rem; flex: 1; }
  .foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--card-line); padding-top: 1rem; }
  .price { font-family: "Marcellus", serif; font-size: 1.4rem; color: var(--cyan-soft); min-height: 1.2em; }
  .add {
    background: linear-gradient(180deg, var(--blue-hi), var(--blue));
    color: var(--white); border: 1px solid rgba(255,255,255,.12); border-radius: 3px;
    padding: .5rem 1.1rem; font: 700 .9rem "Inter", sans-serif; cursor: pointer;
  }
  .add:hover { filter: brightness(1.08); }
  .add[disabled] { background: #3d3d3d; color: var(--muted); cursor: default; filter: none; border-color: var(--card-line); }

  footer { background: #201e1e; border-top: 1px solid #403d3d; color: #aebdc3; padding: 25px 1.25rem 18px; font-size: .9rem; }
  .foot-inner { max-width: 1140px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
  .foot-inner a { color: var(--cyan-soft); text-decoration: none; }
  .foot-inner a:hover { text-decoration: underline; }

  /* ---------- Cart drawer ---------- */
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 30; }
  .scrim.open { opacity: 1; pointer-events: auto; }
  .drawer {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(390px, 100%);
    background: #242222; border-left: 1px solid var(--cyan);
    transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
    z-index: 31; display: flex; flex-direction: column; padding: 1.25rem;
  }
  .drawer.open { transform: none; }
  .drawer header { display: flex; justify-content: space-between; align-items: center; }
  .drawer h2 { font-size: 1.5rem; }
  .close { width: 34px; height: 34px; background: transparent; border: 1px solid var(--card-line); color: var(--text); font-size: 1.2rem; cursor: pointer; border-radius: 3px; }
  .close:hover { border-color: var(--cyan); color: var(--white); }
  .lines { list-style: none; padding: 0; margin: 1rem 0; flex: 1; overflow-y: auto; }
  .lines li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .8rem 0; border-bottom: 1px solid var(--card-line); }
  .lines small { color: var(--muted); }
  .qty { display: flex; align-items: center; gap: .4rem; }
  .qty button { width: 30px; height: 30px; background: var(--card); border: 1px solid var(--card-line); color: var(--white); cursor: pointer; border-radius: 3px; font-weight: 700; }
  .qty button:hover { border-color: var(--cyan); }
  .empty { color: var(--muted); text-align: center; padding: 2rem 0; border: none; }
  .total { display: flex; justify-content: space-between; font-family: "Marcellus", serif; font-size: 1.3rem; color: var(--white); margin-bottom: 1rem; }
  .ign-label { font-size: .9rem; font-weight: 600; display: block; margin-bottom: .9rem; color: var(--text); }
  .ign-label input {
    display: block; width: 100%; margin-top: .35rem; padding: .6rem .8rem;
    border: 1px solid var(--card-line); border-radius: 3px; font: inherit;
    background: #262626; color: var(--white);
  }
  .ign-label input:focus { outline: none; border-color: var(--cyan); }
  .checkout { width: 100%; justify-content: center; }
  .checkout[aria-disabled="true"] { opacity: .45; pointer-events: none; }
  .fine { font-size: .8rem; color: var(--muted); margin-top: .8rem; }

  @media (max-width: 1000px) {
    .nav { min-height: 64px; padding: 0 15px; }
    .brand { font-size: 20px; }
    .brand .badge-mmc { width: 38px; height: 38px; flex-basis: 38px; }
    .menu-toggle { display: block; align-self: center; }
    .links { display: none; position: absolute; top: 100%; left: 0; right: 0; height: auto; flex-direction: column; background: #000; border-top: 1px solid #222; }
    .links.open { display: flex; }
    .links a { height: auto; min-height: 48px; padding: .85rem 1.2rem; }
    .nav > nav { order: 3; }
    .nav > .cart-toggle { margin-left: auto !important; margin-right: .6rem; }
  }
