/* FC Hlučín – objednávka vybavení */
:root {
  --navy: #0f172a;
  --navy-2: #1e293b;
  --green: #16a34a;
  --green-dark: #15803d;
  --green-light: #ecfdf5;
  --bg: #f1f5f9;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 16px rgba(15, 23, 42, .06);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--bg);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  padding-bottom: 96px; /* místo pro lištu */
}
img { max-width: 100%; display: block; }
button { font-family: inherit; }
.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: #fff; padding: 14px 0; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; gap: 14px; }
.logo { width: 56px; height: auto; flex: 0 0 auto; }
.header-club { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: #94a3b8; font-weight: 600; }
.header-title { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
@media (min-width: 640px) { .logo { width: 68px; } .header-title { font-size: 26px; } }

/* ---------- Layout ---------- */
main { padding: 4px 16px 24px; }
.intro-note { margin: 0 0 18px; }
/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 30px 0 70px; isolation: isolate;
  background: radial-gradient(900px 420px at 85% -10%, rgba(22,163,74,.35), transparent 60%),
              radial-gradient(600px 300px at -10% 110%, rgba(59,130,246,.18), transparent 60%),
              linear-gradient(180deg, var(--navy) 0%, #111c33 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--green), #4ade80 50%, transparent); opacity: .9; }
.hero-watermark { position: absolute; right: -60px; top: -30px; width: 340px; opacity: .05; pointer-events: none; z-index: -1; transform: rotate(-8deg); }
.hero-inner { display: grid; gap: 24px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(22,163,74,.16); color: #4ade80; border: 1px solid rgba(74,222,128,.35); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; padding: 6px 12px 6px 10px; border-radius: 999px; margin-bottom: 14px; }
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.2); }
.hero-title { margin: 0 0 12px; font-size: 30px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.hero-lead { margin: 0; color: #cbd5e1; font-size: 15.5px; line-height: 1.6; max-width: 560px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.btn-hero { padding: 13px 22px; font-size: 15.5px; text-decoration: none; box-shadow: 0 8px 24px rgba(22,163,74,.35); }
.hero-link { color: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; opacity: .85; }
.hero-link:hover { opacity: 1; text-decoration: underline; }
.hero-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 22px; color: #94a3b8; font-size: 13px; }
.hero-meta strong { color: #e2e8f0; font-weight: 700; }
.hero-meta-sep { width: 4px; height: 4px; border-radius: 50%; background: #475569; }
.hero-visual { display: none; }
.hero-steps { display: grid; gap: 10px; margin: -46px 0 22px; position: relative; z-index: 1; }
.hero-step { background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15,23,42,.10), 0 1px 2px rgba(15,23,42,.06); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; }
.hero-step-head { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.hero-step-icon { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--green-light); color: var(--green-dark); display: flex; align-items: center; justify-content: center; }
.hero-step-icon svg { width: 22px; height: 22px; }
.hero-step-num { display: none; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.hero-step-title { font-weight: 800; font-size: 15px; margin-bottom: 2px; }
.hero-step-text { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
@media (min-width: 640px) {
  .hero { padding: 48px 0 84px; }
  .hero-title { font-size: 40px; }
  .hero-lead { font-size: 17px; }
  .hero-steps { grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -54px; }
  .hero-step { flex-direction: column; gap: 12px; padding: 18px 20px 20px; }
  .hero-step-head { width: 100%; justify-content: space-between; }
  .hero-step-num { display: inline; }
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; gap: 32px; }
  .hero-watermark { width: 460px; right: 38%; top: -80px; }
  .hero-visual { display: block; position: relative; height: 300px; }
  .hero-card { position: absolute; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,.35); padding: 12px; }
  .hero-card img { width: 100%; height: 100%; object-fit: contain; }
  .hero-card-1 { width: 200px; height: 200px; left: 50%; top: 40px; transform: translateX(-50%) rotate(-3deg); z-index: 3; }
  .hero-card-2 { width: 150px; height: 150px; left: 6%; top: 90px; transform: rotate(-9deg); z-index: 2; opacity: .95; }
  .hero-card-3 { width: 150px; height: 150px; right: 6%; top: 70px; transform: rotate(8deg); z-index: 2; opacity: .95; }
}
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px; }
@media (min-width: 640px) { .card { padding: 24px; } main { padding-top: 8px; } }
.step { margin-bottom: 22px; }
.step-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.step-title { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; margin: 0 0 12px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--green); color: #fff; font-size: 15px; font-weight: 800; flex: 0 0 auto;
}
.step-help { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.cat-title { font-size: 17px; font-weight: 800; margin: 22px 0 2px; padding-left: 12px; border-left: 4px solid var(--green); }
.cat-note { margin: 0 0 12px 16px; color: var(--muted); font-size: 13.5px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 14px; }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.req { color: var(--danger); }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.5'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}
textarea { resize: vertical; min-height: 60px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.is-invalid { border-color: var(--danger) !important; background: var(--danger-bg); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.error-msg { display: none; color: var(--danger); font-size: 13.5px; font-weight: 600; margin-top: 6px; }
.error-msg.show { display: block; }
.error-items.show, .error-global.show { background: var(--danger-bg); border: 1px solid #fecaca; padding: 10px 12px; border-radius: 10px; margin: 10px 0; }
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.alert { padding: 16px; border-radius: var(--radius); font-weight: 600; }
.alert-error { background: var(--danger-bg); color: #991b1b; border: 1px solid #fecaca; }
.alert-info { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  font-weight: 700; font-size: 15px; padding: 12px 18px; border-radius: 10px; transition: background .15s, transform .05s;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-primary[disabled] { opacity: .6; cursor: default; }
.btn-secondary { background: var(--navy); color: #fff; }
.btn-secondary:hover { background: var(--navy-2); }
.btn-add { width: 100%; background: var(--navy); color: #fff; padding: 11px; }
.btn-add:hover { background: var(--navy-2); }
.btn-link { background: none; border: 1.5px solid var(--border); border-radius: 999px; padding: 7px 12px; font-size: 13.5px; font-weight: 600; color: var(--text); cursor: pointer; }
.btn-link:hover { border-color: var(--navy); }
.btn-submit { width: 100%; font-size: 17px; padding: 15px; margin-top: 6px; }
.btn-spinner { width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Products ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 8px; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.product {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 2px solid transparent;
  display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, box-shadow .15s; position: relative;
}
.product.selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,.15), var(--shadow); }
.product.selected::after {
  content: "✓"; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center;
}
.product-img { background: #fff; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 10px; width: 100%; border: 0; cursor: zoom-in; position: relative; -webkit-tap-highlight-color: transparent; }
.zoom-icon { position: absolute; right: 8px; bottom: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(15,23,42,.08); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.product.selected .zoom-icon { right: 8px; }
.product-img img { width: 100%; height: 100%; object-fit: contain; }
.product-body { padding: 8px 12px 4px; flex: 1; }
.product-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.product-desc { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.3; }
.product-price { font-weight: 800; font-size: 17px; color: var(--green-dark); margin-top: 6px; }
.product-actions { padding: 6px 12px 12px; }
.product.selected .product-actions { display: none; }
.product-options { padding: 4px 12px 12px; border-top: 1px dashed var(--border); background: #f8fafc; }
.opt { margin-top: 10px; }
.opt-label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.opt-uni { font-size: 13px; color: var(--muted); font-style: italic; }
.size-select { padding: 10px 12px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 999px; border: 1.5px solid var(--border);
  background: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--text);
}
.chip.active { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); display: inline-block; }
.swatch-černá { background: #111; } .swatch-bílá { background: #fff; } .swatch-zelená { background: #22c55e; } .swatch-žlutá { background: #d9f99d; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: 10px; background: #fff; overflow: hidden; }
.qty-btn { width: 40px; height: 38px; border: 0; background: #fff; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--navy); }
.qty-btn:hover { background: var(--bg); }
.qty-val { min-width: 34px; text-align: center; font-weight: 800; font-size: 16px; }
.btn-remove { margin-top: 12px; background: none; border: 0; color: var(--danger); font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 4px 0; }

/* ---------- Summary ---------- */
.summary-empty { color: var(--muted); padding: 12px 14px; background: var(--bg); border-radius: 10px; margin-bottom: 14px; font-size: 14.5px; }
.summary { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 14.5px; }
.summary th { text-align: left; font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; padding: 6px 4px; border-bottom: 2px solid var(--border); }
.summary td { padding: 9px 4px; border-bottom: 1px solid var(--border); vertical-align: top; }
.summary .c { text-align: center; white-space: nowrap; } .summary .r { text-align: right; white-space: nowrap; }
.summary .spec { color: var(--muted); font-size: 12.5px; }
.summary tfoot td { border: 0; font-weight: 800; font-size: 17px; padding-top: 12px; text-align: right; }
.summary .total { color: var(--green-dark); font-size: 21px; }
.payment-info { background: var(--green-light); border-left: 4px solid var(--green); padding: 10px 14px; border-radius: 8px; font-size: 14px; margin: 6px 0 14px; }
.privacy { font-size: 12.5px; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* ---------- Sticky bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; background: var(--navy); color: #fff; z-index: 50;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25); padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  transform: translateY(0); transition: transform .2s;
}
.sticky-bar[hidden] { display: none; }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bar-count { font-size: 12.5px; color: #94a3b8; }
.bar-total { font-size: 20px; font-weight: 800; line-height: 1.1; }

/* ---------- Success ---------- */
.success { text-align: center; padding: 32px 20px; }
.success-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--green); color: #fff; font-size: 34px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.success h2 { margin: 0 0 10px; font-size: 24px; }
.success .warn { background: #fffbeb; color: #92400e; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.success .btn { margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer { text-align: center; color: var(--muted); font-size: 13px; padding: 12px 0 20px; }
.footer-credit { margin-top: 6px; font-size: 12.5px; color: #94a3b8; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.6); }
.modal-box { position: relative; background: #fff; width: 100%; max-width: 620px; max-height: 88vh; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 640px) { .modal { align-items: center; padding: 20px; } .modal-box { border-radius: 18px; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-close { background: var(--bg); border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 16px; cursor: pointer; }
.modal-body { padding: 8px 18px 22px; overflow: auto; -webkit-overflow-scrolling: touch; }
.modal-body h4 { margin: 16px 0 6px; font-size: 14.5px; }
.sizes { width: 100%; border-collapse: collapse; font-size: 14px; }
.sizes th, .sizes td { padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: center; }
.sizes th { background: var(--bg); font-size: 12px; text-transform: uppercase; color: var(--muted); }
.sizes td:first-child { font-weight: 800; }
body.modal-open { overflow: hidden; }

/* ---------- Výběr velikosti ---------- */
.btn-sizes { width: 100%; background: #fff; color: var(--green-dark); border: 2px solid var(--green); padding: 11px 14px; margin: 4px 0 6px; }
.btn-sizes:hover { background: var(--green-light); }
@media (min-width: 640px) { .btn-sizes { width: auto; } }
.size-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 2px solid var(--navy);
  border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 15px; font-weight: 700; color: var(--navy); cursor: pointer; text-align: left;
}
.size-btn.is-set { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
.size-btn.is-invalid { border-color: var(--danger); background: var(--danger-bg); color: var(--danger); }
.size-btn-arrow { font-size: 22px; line-height: 1; opacity: .6; }
.modal-kicker { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.measure { display: flex; gap: 14px; align-items: flex-start; background: var(--bg); border-radius: 12px; padding: 12px 14px; margin: 10px 0 14px; }
.measure svg { width: 92px; height: auto; flex: 0 0 auto; }
.measure p { margin: 0; font-size: 14px; line-height: 1.5; }
.measure p + p { margin-top: 6px; }
.pick-title { font-size: 13px; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: .05em; margin: 14px 0 6px; }
.pick-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pick-table th { font-size: 11.5px; text-transform: uppercase; color: var(--muted); padding: 6px 6px; text-align: center; border-bottom: 2px solid var(--border); }
.pick-table th:first-child { text-align: left; }
.pick-table td { padding: 0; border-bottom: 1px solid var(--border); text-align: center; }
.pick-table tr.pick-row { cursor: pointer; }
.pick-table tr.pick-row:hover td, .pick-table tr.pick-row:active td { background: var(--green-light); }
.pick-table tr.pick-row.active td { background: var(--green-light); }
.pick-table td button { width: 100%; background: none; border: 0; font: inherit; padding: 12px 6px; cursor: pointer; color: var(--text); }
.pick-table td:first-child button { text-align: left; font-weight: 800; font-size: 16px; padding-left: 0; }
.pick-table .age { display: block; font-size: 11px; color: var(--muted); font-weight: 500; line-height: 1.3; white-space: nowrap; margin-top: 3px; }
.pick-size { display: inline-block; min-width: 40px; text-align: center; padding: 3px 8px; border: 2px solid var(--navy); border-radius: 8px; }
.pick-table tr.pick-row.active .pick-size { border-color: var(--green); background: var(--green); color: #fff; }
.pick-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-chip { border: 2px solid var(--border); background: #fff; border-radius: 12px; padding: 10px 14px; font: inherit; font-weight: 800; font-size: 16px; cursor: pointer; min-width: 64px; text-align: center; }
.pick-chip small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.pick-chip:hover { border-color: var(--green); }
.pick-chip.active { border-color: var(--green); background: var(--green-light); color: var(--green-dark); }
.pick-note { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

/* ---------- Lightbox (detail fotky) ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: #fff; display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font-size: 18px; cursor: pointer; box-shadow: var(--shadow); }
.lightbox-img { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; touch-action: pinch-zoom; overflow: auto; }
.lightbox-img img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; }
.lightbox-info { border-top: 1px solid var(--border); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; background: #fff; }
.lightbox-name { font-weight: 800; font-size: 17px; }
.lightbox-price { font-weight: 800; font-size: 18px; color: var(--green-dark); text-align: right; }
.lightbox-chips { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; }
.lightbox-chips:empty { display: none; }
.lightbox-info .btn { grid-column: 1 / -1; width: 100%; }
@media (min-width: 640px) {
  .lightbox { background: rgba(15,23,42,.85); padding: 24px; }
  .lightbox-img { background: #fff; border-radius: 16px 16px 0 0; max-width: 720px; width: 100%; margin: 0 auto; }
  .lightbox-info { max-width: 720px; width: 100%; margin: 0 auto; border-radius: 0 0 16px 16px; }
  .lightbox-close { top: 32px; right: 32px; }
}
