/* Sdílený vzhled webu všech shopů — stavba stránky a neutrální výchozí barvy.
   Motiv shopu (themes/<slug>/public/theme.css) přepisuje proměnné a přidává svoje prvky. */
:root {
  --accent: #0B63CE; --accent-dark: #0A54AD; --accent-soft: #EAF2FD;
  --ink: #1B2733; --muted: #6A7580; --page: #F6F7F9; --card: #fff; --line: #E6E9EF; --sale: #E23A3A;
  --radius: 10px;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: var(--font); --head-weight: 700; --head-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--page); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-spacing); line-height: 1.08; margin: 0 0 .5em; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* hlavička */
.promo { background: var(--ink); color: #fff; text-align: center; font-size: 14px; padding: 8px 12px; }
.promo-code { background: var(--accent); color: #fff; padding: 2px 9px; border-radius: 6px; margin-left: 6px; letter-spacing: .05em; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar-in { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a { text-decoration: none; margin-left: 18px; }
.header { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: var(--head-weight); font-size: 28px; white-space: nowrap; }
.logo-mark { width: 48px; height: 48px; }
.search { flex: 1; max-width: 520px; margin-left: auto; }
.search input { width: 100%; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--page); font: inherit; }
.cartpill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 2px solid var(--accent); border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--accent-dark); }
.cartpill svg { width: 20px; height: 20px; }
.cartpill-count { background: var(--accent); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; padding: 0 6px; }
.nav { border-top: 1px solid var(--line); background: #fff; }
.nav-in { display: flex; gap: 2px; overflow-x: auto; }
.nav a { padding: 12px 14px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; border-bottom: 3px solid transparent; }
.nav a:hover, .nav a.active { border-color: var(--accent); color: var(--accent-dark); }
.flash { margin-top: 16px; background: var(--accent-soft); border: 1px solid var(--accent); padding: 12px 16px; border-radius: var(--radius); }
.flash a { font-weight: 700; color: var(--accent-dark); }
.flash-error { background: #FDECEC; border-color: var(--sale); }

/* sekce a karty produktů */
.section { padding: 48px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 0; }
.link-more { font-weight: 700; color: var(--accent-dark); text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 12px 30px rgba(0,0,0,.10); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 18px; }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-ph { font-family: var(--font-head); font-size: 22px; text-align: center; color: var(--muted); }
.card-flags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.flag { background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.flag-sale { background: var(--sale); }
.card-body { padding: 4px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.card-title { font-size: 21px; margin: 0; }
.card-title a { text-decoration: none; }
.card-desc { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }
.stock { font-size: 13px; font-weight: 700; margin: 4px 0 0; }
.stock.in { color: var(--accent-dark); }
.stock.out { color: var(--sale); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price strong { font-size: 22px; }
.price s { font-size: 14px; color: var(--muted); }

/* tlačítka */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 24px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { background: #B8C0C8; cursor: not-allowed; }
.btn-ghost { background: transparent; border: 2px solid currentColor; }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 18px; }

/* katalog */
.catalog { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 32px 0 56px; }
.sidebar { background: #fff; border-radius: var(--radius); overflow: hidden; align-self: start; position: sticky; top: 140px; }
.sidebar h3 { margin: 0; padding: 14px 18px; background: var(--accent); color: #fff; font-size: 20px; }
.sidebar a { display: block; padding: 11px 18px; text-decoration: none; border-top: 1px solid var(--line); font-weight: 600; }
.sidebar a.active, .sidebar a:hover { color: var(--accent-dark); background: var(--accent-soft); }
.catalog-head { background: #fff; border-radius: var(--radius); padding: 24px 28px; margin-bottom: 16px; }
.catalog-head h1 { font-size: clamp(32px, 4vw, 48px); }
.catalog-head p { margin: 0; color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 16px; text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a.active { border-color: var(--accent); color: var(--accent-dark); }
.empty { background: #fff; border-radius: var(--radius); padding: 48px; text-align: center; color: var(--muted); }

/* detail produktu */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 20px; }
.crumbs a { text-decoration: none; }
.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; padding: 20px 0 40px; }
.pd-gallery { background: #fff; border-radius: var(--radius); padding: 24px; align-self: start; }
.pd-main { aspect-ratio: 1 / 1; display: grid; place-items: center; }
.pd-main img { max-height: 100%; object-fit: contain; }
.pd-thumbs { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.pd-thumbs button { width: 72px; height: 72px; border: 2px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; cursor: pointer; }
.pd-thumbs button.active { border-color: var(--accent); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: clamp(34px, 4.5vw, 56px); }
.pd-params { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 600; }
.pd-lead { font-size: 18px; color: var(--muted); }
.pd-buy { background: #fff; border-radius: var(--radius); padding: 22px; margin: 20px 0; display: grid; gap: 14px; }
.pd-price { display: flex; align-items: baseline; gap: 12px; }
.pd-price strong { font-size: 42px; font-family: var(--font-head); font-weight: var(--head-weight); }
.pd-price s { color: var(--muted); font-size: 18px; }
.pd-buy form { display: flex; gap: 10px; }
.qty { width: 84px; padding: 12px; border: 1px solid var(--line); border-radius: 999px; text-align: center; font: inherit; font-weight: 700; }
.trust { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.trust li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 8px; }
.seal { display: flex; gap: 12px; align-items: center; background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; font-weight: 600; }
.prose { background: #fff; border-radius: var(--radius); padding: 28px 32px; font-size: 17px; line-height: 1.7; }
.prose h2 { font-size: 30px; }
.seller { font-size: 14px; color: var(--muted); margin: 0; }

/* košík */
.cart { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 24px 0 56px; }
.cart-lines { background: #fff; border-radius: var(--radius); padding: 8px 20px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 72px; height: 72px; object-fit: contain; }
.cart-line a { font-weight: 700; text-decoration: none; }
.cart-remove { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 24px; line-height: 1; }
.cart-actions { display: flex; justify-content: flex-end; padding: 12px 0; }
.summary { background: #fff; border-radius: var(--radius); padding: 22px; align-self: start; display: grid; gap: 12px; position: sticky; top: 140px; }
.summary h2 { font-size: 26px; margin: 0; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; }
.summary-total { font-size: 22px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 12px; }
.progress { height: 8px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; font: inherit; text-transform: uppercase; }
.note { font-size: 14px; color: var(--muted); margin: 0; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-card div { padding: 18px; }
.post-card h3 { font-size: 24px; }

/* patička */
.footer { background: var(--ink); color: #D6DBE0; margin-top: 40px; padding: 48px 0 24px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.5fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 18px; margin-bottom: 12px; }
.footer a { display: block; text-decoration: none; margin-bottom: 6px; }
.footer p { margin: 0 0 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; font-size: 13px; color: #9AA3AD; }

/* pokladna a objednávka */
.checkout-steps { display: grid; gap: 16px; align-content: start; }
.panel { background: #fff; border-radius: var(--radius); padding: 22px 24px; }
.panel h2 { font-size: 26px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field textarea { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.option { display: flex; align-items: center; gap: 12px; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input { accent-color: var(--accent); width: 18px; height: 18px; }
.option span { flex: 1; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 15px; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.check a { color: var(--accent-dark); font-weight: 600; }
.pickup { background: var(--page); border-radius: 12px; padding: 14px 16px; }
.pickup-view { margin: 0 0 10px; font-weight: 600; }
details summary { cursor: pointer; font-weight: 600; margin-top: 14px; color: var(--accent-dark); }
.errors { margin: 8px 0 0; padding-left: 20px; }
.bank { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: center; }
.bank img { width: 230px; height: 230px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.bank dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.bank dt { color: var(--muted); }
.bank dd { margin: 0; font-weight: 700; }
.legal h2 { font-size: 26px; margin-top: 1.4em; }
.legal .form-sample { background: var(--page); border-radius: var(--radius); padding: 16px 20px; }

@media (max-width: 900px) {
  .bank { grid-template-columns: 1fr; }
  .catalog, .pd, .cart { grid-template-columns: 1fr; }
  .sidebar, .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .header-in { flex-wrap: wrap; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
}
@media (max-width: 560px) {
  .cart-line { grid-template-columns: 56px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .topbar-contact { display: none; }
}
