/* Jazdecká škola Podkova — shared styles */

html, body {
  margin: 0;
  padding: 0;
  background: #f5efe4;
  color: #2b2219;
  font-family: 'Manrope', 'Segoe UI', -apple-system, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  font-weight: 400;
}
.mono { font-family: 'JetBrains Mono', 'Courier New', monospace; }
a { color: #9a5326; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #2f4a3a; }
input, select, textarea, button { font-family: inherit; }
img { max-width: 100%; display: block; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.container-article { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.container-price { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: #2f4a3a; color: #fbf8f2;
  padding: 10px 16px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border-radius: 4px; font-weight: 700; border: none; text-decoration: none; }
.btn-terra { background: #9a5326; color: #fbf8f2; }
.btn-terra:hover { background: #7f4320; color: #fbf8f2; }
.btn-green { background: #2f4a3a; color: #fbf8f2; }
.btn-green:hover { background: #223829; color: #fbf8f2; }
.btn-outline-dark { background: transparent; color: #2b2219; border: 1px solid #2b2219; }
.btn-outline-dark:hover { background: #ebe1cf; }
.btn-outline-light { background: #fbf8f2; color: #2b2219; border: 1px solid #cdbd9f; }
.btn-outline-light:hover { border-color: #2f4a3a; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-md { padding: 12px 18px; font-size: 14px; }
.btn-sm { padding: 10px 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* Top bar */
.topbar { background: #2f4a3a; color: #efe6d4; font-size: 13px; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 8px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.topbar-group { display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: #fbf8f2; border-bottom: 1px solid #e2d6c0; }
.header-inner { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; color: inherit; }
.logo-mark { width: 30px; height: 32px; border: 6px solid #9a5326; border-top: none; border-radius: 0 0 16px 16px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-title { font-family: 'DM Serif Display', Georgia, serif; font-size: 26px; color: #2b2219; }
.logo-sub { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: #5e5246; margin-top: 4px; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; order: 3; width: 100%; overflow-x: auto; }
.nav-link { background: transparent; border: none; border-bottom: 2px solid transparent; color: #2b2219; padding: 8px 10px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; display: inline-block; }
.nav-link:hover { color: #9a5326; }
.nav-link.active { color: #9a5326; border-bottom-color: #9a5326; }
.header-actions { display: flex; gap: 10px; align-items: center; }
.cart-btn { position: relative; display: flex; gap: 8px; align-items: center; }
.cart-badge { background: #2f4a3a; color: #fbf8f2; border-radius: 999px; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; padding: 0 6px; }

/* Cards & sections */
.section { padding: 72px 24px; }
.section-alt { background: #fbf8f2; border-top: 1px solid #e2d6c0; border-bottom: 1px solid #e2d6c0; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: #9a5326; font-weight: 700; }
.card { background: #fbf8f2; border: 1px solid #e2d6c0; border-radius: 6px; padding: 28px; }
.card-soft { background: #f5efe4; border-radius: 6px; padding: 18px; }
.card-hover { cursor: pointer; text-decoration: none; color: inherit; display: block; }
.card-hover:hover { background: #efe5d3; }
.img-cover { width: 100%; object-fit: cover; border-radius: 6px; background: #e4d7bf; }
.img-cover-sm { border-radius: 4px; }

/* Quiz */
.quiz-box { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; background: #2f4a3a; color: #efe6d4; border-radius: 8px; padding: clamp(28px, 5vw, 56px); }
.quiz-opt { text-align: left; background: transparent; color: #efe6d4; border: 1px solid #5b7564; border-radius: 4px; padding: 14px 16px; font-size: 15px; font-weight: 600; cursor: pointer; width: 100%; }
.quiz-opt:hover { border-color: #d9b48c; }
.quiz-opt.selected { background: #fbf8f2; color: #2b2219; }

/* FAQ / blog details */
.faq-list { border-top: 1px solid #d6c8ad; }
.faq-item { border-bottom: 1px solid #d6c8ad; }
.faq-item summary { list-style: none; width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 0; cursor: pointer; font-size: 18px; font-weight: 600; color: #2b2219; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .sign { font-size: 24px; color: #9a5326; font-weight: 400; }
.faq-item[open] summary .sign::before { content: "\2212"; }
.faq-item:not([open]) summary .sign::before { content: "+"; }
.faq-item p { margin: 0 0 20px; color: #4a3f34; line-height: 1.7; max-width: 760px; }

.blog-article { background: #fbf8f2; border: 1px solid #e2d6c0; border-radius: 6px; padding: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-bottom: 20px; }
.blog-toggle { background: transparent; border: none; padding: 0; color: #9a5326; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.blog-body summary { list-style: none; }
.blog-body summary::-webkit-details-marker { display: none; }
.blog-body summary .blog-toggle::after { content: "Čítať celý článok →"; }
.blog-body[open] summary .blog-toggle::after { content: "Zbaliť článok"; }

/* Shop */
.shop-cats { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-cat { background: transparent; color: #2b2219; border: 1px solid #2b2219; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.shop-cat.active { background: #2b2219; color: #fbf8f2; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.product-card { background: #fbf8f2; border: 1px solid #e2d6c0; border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.product-card .img-cover { aspect-ratio: 1/1; }
.product-card h3 { margin: 0; font-size: 17px; line-height: 1.3; font-family: 'Manrope', sans-serif; font-weight: 700; }

/* Shipping/payment radio cards */
.radio-card { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 2px solid #e2d6c0; border-radius: 4px; cursor: pointer; background: #fff; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card:has(input:checked) { border-color: #2f4a3a; }
.radio-card.selected { border-color: #2f4a3a; }

/* Cart drawer */
.cart-overlay { position: fixed; inset: 0; z-index: 60; display: none; justify-content: flex-end; }
.cart-overlay.open { display: flex; }
.cart-scrim { position: absolute; inset: 0; background: rgba(36,28,20,.45); border: none; padding: 0; cursor: pointer; }
.cart-aside { position: relative; width: min(440px, 100%); height: 100%; background: #fbf8f2; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.2); }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid #e2d6c0; }
.cart-close { background: transparent; border: 1px solid #cdbd9f; border-radius: 4px; width: 40px; height: 40px; font-size: 18px; cursor: pointer; color: #2b2219; }
.cart-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart-line { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #ece2cf; }
.cart-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 4px; object-fit: cover; background: #e4d7bf; }
.cart-qty-btn { width: 32px; height: 32px; border: 1px solid #cdbd9f; background: #fff; border-radius: 4px; cursor: pointer; font-size: 16px; }
.cart-remove { margin-left: auto; background: transparent; border: none; color: #9a5326; cursor: pointer; font-size: 13px; text-decoration: underline; }
.cart-foot { padding: 20px 24px; border-top: 1px solid #e2d6c0; display: flex; flex-direction: column; gap: 10px; }

/* Toast */
.toast { position: fixed; top: 96px; right: 24px; z-index: 55; background: #2f4a3a; color: #fbf8f2; padding: 14px 18px; border-radius: 4px; font-weight: 600; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.2); display: none; }
.toast.show { display: block; }

/* Cookie bar */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 880px; margin: 0 auto; background: #fbf8f2; border: 1px solid #cdbd9f; border-radius: 6px; padding: 20px 22px; box-shadow: 0 14px 40px rgba(36,28,20,.25); display: none; flex-wrap: wrap; gap: 16px; align-items: center; }
.cookie-bar.show { display: flex; }

/* Footer */
.site-footer { background: #241c14; color: #d8cfbd; }
.footer-grid { max-width: 1240px; margin: 0 auto; padding: 56px 24px 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo-mark { width: 24px; height: 26px; border: 5px solid #d9b48c; border-top: none; border-radius: 0 0 13px 13px; }
.footer-link { color: inherit; text-decoration: none; cursor: pointer; }
.footer-link:hover { color: #d9b48c; }
.footer-bottom { max-width: 1240px; margin: 0 auto; padding: 18px 24px 28px; border-top: 1px solid #3d3227; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: #a99b85; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 12px; border: 1px solid #cdbd9f; border-radius: 4px; background: #fff; font-size: 15px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #2f4a3a; outline-offset: 1px; }
.checkline { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; align-items: flex-start; }
.checkline input { margin-top: 3px; accent-color: #2f4a3a; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.span-all { grid-column: 1 / -1; }

/* Table */
.data-table-wrap { overflow-x: auto; border: 1px solid #e2d6c0; border-radius: 6px; background: #fbf8f2; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.data-table th { padding: 14px 16px; background: #2f4a3a; color: #fbf8f2; text-align: left; }
.data-table td { padding: 14px 16px; border-top: 1px solid #e2d6c0; }
.data-table tr.alt td { background: #f7f2e8; }

/* Legal articles */
.legal-article { padding: 56px 24px 80px; display: flex; flex-direction: column; gap: 14px; line-height: 1.75; color: #3a3027; }
.legal-article h1 { color: #2b2219; margin: 0 0 8px; line-height: 1.1; font-size: clamp(36px, 5vw, 54px); }
.legal-article h2 { font-size: 20px; margin: 16px 0 0; color: #2b2219; font-family: 'Manrope', sans-serif; font-weight: 700; }
.legal-article p, .legal-article ul, .legal-article ol { margin: 0; }
.legal-article ul, .legal-article ol { padding-left: 22px; }

/* Utility */
.hide { display: none !important; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 48px; align-items: center; padding: 56px 24px 40px; }
.hero-badge { position: absolute; left: -18px; bottom: 28px; background: #fbf8f2; border: 1px solid #e2d6c0; border-radius: 6px; padding: 16px 18px; max-width: 240px; box-shadow: 0 10px 30px rgba(43,34,25,.12); }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: 'DM Serif Display', Georgia, serif; font-size: 30px; font-weight: 400; }
.stat span { font-size: 13px; color: #5e5246; }

@media (max-width: 640px) {
  .hero-badge { position: static; margin-top: 16px; left: auto; bottom: auto; }
}
