/* Shop pages (landing, product pages). Loaded after site.css; reuses its form styles. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap;
  src: url("/assets/products/_shared/fonts/Poppins-Regular.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap;
  src: url("/assets/products/_shared/fonts/Poppins-Medium.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap;
  src: url("/assets/products/_shared/fonts/Poppins-Bold.ttf") format("truetype"); }
@font-face { font-family: "Archivo Black"; font-weight: 400; font-display: swap;
  src: url("/assets/products/_shared/fonts/ArchivoBlack-Regular.ttf") format("truetype"); }

body.shop {
  --bg: #FFFBF5; --surface: #FFFFFF; --text: #1F2430; --muted: #5E6472; --line: #EEE3D5;
  --accent: #D9483B; --accent-strong: #B93429; --accent-soft: #FDE8E4; --note: #FFF3DC;
  --alt: #FFF4E8; --green: #1F5A43; --gold: #E9A23B; --shadow: 0 18px 40px rgba(60, 35, 10, .16);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  body.shop {
    --bg: #17140F; --surface: #211D17; --text: #F2EDE6; --muted: #B5AC9F; --line: #3A332A;
    --accent: #FF7A6B; --accent-strong: #FF9386; --accent-soft: #3A221E; --note: #2F2716;
    --alt: #1D1914; --shadow: 0 18px 40px rgba(0, 0, 0, .45);
  }
}
.shop main { display: block; }
.shop a { color: var(--accent); }
.shop h1, .shop h2, .brand { font-family: "Archivo Black", "Poppins", sans-serif; font-weight: 400; letter-spacing: -.01em; }
.shop h1 { font-size: clamp(30px, 6vw, 50px); line-height: 1.08; margin: 0 0 16px; }
.shop h2 { font-size: clamp(24px, 4vw, 34px); line-height: 1.15; margin: 0 0 12px; }
.shop h3 { font-size: 17px; margin: 0 0 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.section-inner { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.section-inner.narrow { max-width: 760px; }
.section { padding: 56px 0; }
.section.alt { background: var(--alt); }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); }

/* Header */
.shop-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.shop-bar { max-width: 1120px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px;
  justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; color: var(--text) !important; text-decoration: none; margin: 0; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-tld { color: #D9962B; }
.shop-footer .brand-mark { width: 26px; height: 26px; }
.shop-header nav { display: flex; gap: 18px; align-items: center; font-size: 15px; font-weight: 500; }
.shop-header nav a { color: var(--text); text-decoration: none; }
.shop-header nav a:hover { color: var(--accent); }
.nav-code { white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent) !important; }
@media (max-width: 560px) { .shop-header nav a:not(.nav-code) { display: none; } }

/* Buttons: inline on shop pages */
.shop .button { width: auto; text-align: center; text-decoration: none; border-radius: 999px; padding: 13px 26px; }
.shop .button:hover { background: var(--accent-strong); }
.shop .button.secondary:hover { background: var(--accent-soft); }
.shop .button:not(.secondary) { color: #fff; }
@media (prefers-color-scheme: dark) { .shop .button:not(.secondary) { color: #1A0E0C; } }

/* Hero */
.hero { padding: 48px 0 56px; background:
  radial-gradient(circle at 85% 20%, var(--accent-soft), transparent 45%),
  radial-gradient(circle at 10% 90%, var(--note), transparent 40%); overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 24px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px;
  font-size: 14px; font-weight: 500; }
.trust li::before, .features li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }
@media (prefers-color-scheme: dark) { .trust li::before, .features li::before { color: #7FD1A8; } }

.hero-art { position: relative; height: clamp(320px, 52vw, 470px); }
.sheet { position: absolute; width: auto; height: 92%; background: #fff; border-radius: 6px; box-shadow: var(--shadow); }
.hero-art .sheet-0 { left: 6%; top: 2%; transform: rotate(-5deg); }
.hero-art .sheet-1 { right: 4%; top: 8%; transform: rotate(5deg); }
.hero-art.single .sheet { left: 50%; top: 4%; transform: translateX(-50%) rotate(2.5deg); }
@media (max-width: 879px) { .hero-art { height: 300px; } .hero-art .sheet-0 { left: 8%; } .hero-art .sheet-1 { right: 8%; } }

/* Product grid */
.product-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.product-card { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; overflow: hidden; color: inherit !important; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover, .product-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow); outline: none; }
.thumb { display: flex; justify-content: center; align-items: center; aspect-ratio: 1 / 1; padding: 22px;
  background: linear-gradient(160deg, var(--alt), var(--accent-soft)); }
.thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 4px;
  box-shadow: 0 8px 22px rgba(60, 35, 10, .18); background: #fff; }
.product-card-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.product-card-name { font-weight: 700; font-size: 18px; }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 4px; }
.product-card-tagline { color: var(--muted); font-size: 14px; flex: 1; }
.product-card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; }
.more { color: var(--accent); font-weight: 600; font-size: 14px; }
.price { font-weight: 700; }
.price.big { font-size: 26px; margin: 0 0 12px; }

/* Landing: recommendations, category chips, one section per category */
.featured-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.category-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 36px; }
.category-nav-label { color: var(--muted); font-size: 14px; margin-right: 4px; }
.category-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; font-weight: 600;
  font-size: 14px; }
.category-nav a:hover, .category-nav a:focus-visible { border-color: var(--accent); color: var(--accent); }
.category-nav .count { font-size: 12px; font-weight: 600; color: var(--muted); }
#produkty { padding-bottom: 8px; }
.section.category { padding: 32px 0; scroll-margin-top: 16px; }
.section.category + .section.category { border-top: 1px solid var(--line); }
.category-title { margin: 0; }
.category .product-grid { margin-top: 18px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); counter-reset: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.step-no { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 12px;
  background: var(--accent); color: #fff; font-weight: 700; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Code box */
.name-story { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.name-story img { flex: none; width: 140px; height: auto; }
.name-story p { flex: 1 1 260px; margin: 0; }
.code-box { display: grid; gap: 16px; padding: 26px; border-radius: 20px; background: var(--surface);
  border: 2px dashed var(--line); }
.code-box h2 { font-size: 24px; margin: 0 0 4px; }
.code-box p { margin: 0; color: var(--muted); }
.code-row { display: flex; gap: 10px; flex-wrap: wrap; }
.code-row input { flex: 1 1 220px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.email-row input { flex: 1 1 240px; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 17px; text-transform: none; }

/* Product page */
.crumbs { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.features { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 6px; }
.soon { font-weight: 600; color: var(--muted); padding: 12px 0; }
.product-hero .lead { font-size: 17px; }
.shop .product { margin-top: 20px; }
.shop fieldset { border-radius: 16px; }
.demo-buy { background: var(--note); border-radius: 14px; padding: 16px; display: grid; gap: 12px; }
.demo-buy p { margin: 0; }
.shop .preview h2 { font-family: inherit; font-size: 16px; }

/* Footer */
.shop-footer { border-top: 1px solid var(--line); padding: 40px 0 24px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.shop-footer p { margin: 0 0 6px; }
.shop-footer .brand { font-size: 18px; margin-bottom: 8px; }
.copyright { margin-top: 24px !important; font-size: 13px; }
.shop [id] { scroll-margin-top: 72px; }
form.inline { display: inline; margin: 0; }
.pay-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.test-mode { margin: 12px 0 0; padding: 8px 12px; border-radius: 10px; font-size: 13px; font-weight: 600;
  background: #FFF0B3; color: #5C4600; display: inline-block; }
.demo-buy .button { width: 100%; }
/* Product with several designs: three cards fanned out, the middle one in front */
.hero-art.fan .sheet { height: 82%; }
.hero-art.fan .fan-0 { left: 6%; top: 10%; transform: rotate(-9deg); }
.hero-art.fan .fan-1 { right: 6%; top: 10%; transform: rotate(9deg); }
.hero-art.fan .fan-2 { left: 50%; top: 3%; transform: translateX(-50%); z-index: 1; }
@media (max-width: 879px) { .hero-art.fan .fan-0 { left: 2%; } .hero-art.fan .fan-1 { right: 2%; } }
/* Legal pages */
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal ol, .legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal p, .legal li { line-height: 1.6; }
.legal .seller { font-style: normal; margin: 8px 0; line-height: 1.6; }
.legal .table-wrap { overflow-x: auto; }
.legal table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px; border: 1px solid var(--line); }
.legal th { background: var(--alt); }
mark.missing { background: #FFD9D3; color: #8A1C10; padding: 0 4px; border-radius: 4px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
