/* České Podlahy — sdílené styly */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF;
}

:root {
  --bg: #FBF8F4;
  --bg-soft: #F5EEE4;
  --ink: #1C1714;
  --ink-soft: #3B322B;
  --brown: #2E2620;
  --brown-darker: #241E19;
  --accent: #B5793A;
  --accent-dark: #8E5C27;
  --border: #E8DFD2;
  --border-soft: #EFE7DC;
  --muted: #6B6157;
  --muted-2: #8A7B69;
  --green: #7C8A5F;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
}
h1, h2, h3, h4 { font-family: 'Bricolage Grotesque', sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }
input, select, textarea, button { font-family: 'Manrope', sans-serif; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: #1C1714; color: #fff;
  padding: 12px 18px; z-index: 100; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

@keyframes slideIn { from { transform: translateX(24px); opacity: 0 } to { transform: none; opacity: 1 } }
@keyframes fadeUp { from { transform: translateY(10px); opacity: 0 } to { transform: none; opacity: 1 } }

/* buttons */
.btn { border: none; cursor: pointer; border-radius: 4px; font-weight: 700; font-family: 'Manrope', sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; padding: 16px 30px; font-size: 15.5px; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn-dark { background: var(--ink); color: #fff; padding: 15px; font-size: 15px; }
.btn-dark:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn-outline { background: none; color: var(--ink); border: 1.5px solid #D3C6B4; padding: 16px 30px; font-size: 15.5px; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-outline-sm { background: none; color: var(--ink); border: 1.5px solid #D3C6B4; padding: 13px 22px; font-size: 14.5px; border-radius: 4px; font-weight: 700; cursor: pointer; }
.btn-outline-sm:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-pill { border: 1.5px solid #D3C6B4; background: #fff; border-radius: 100px; padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer; color: var(--ink-soft); }
.btn-pill:hover { border-color: var(--accent); color: var(--accent); }
.btn-pill.is-active { border-color: var(--accent); color: var(--accent); }
.btn-small-dark { background: var(--ink); color: #fff; border: none; border-radius: 4px; padding: 10px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.btn-small-dark:hover { background: var(--accent); }
.btn-legal-pill { background: #fff; border: 1px solid #E2D6C4; border-radius: 100px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ink-soft); text-decoration:none; }
.btn-legal-pill:hover { border-color: var(--accent); color: var(--accent); }

/* header */
.topbar { background: var(--brown); color: #D8CDBE; font-size: 13px; letter-spacing: .01em; }
.topbar-inner { max-width: 1220px; margin: 0 auto; padding: 9px 24px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.topbar a { color: #E8DFD2; text-decoration: none; font-weight: 600; }
.topbar a.muted { color: #8C7F6E; font-weight: 400; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(251,248,244,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header-inner { max-width: 1220px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand:hover { text-decoration: none; color: inherit; }
.brand-mark { width: 36px; height: 36px; border-radius: 5px; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.brand-mark span { width: 18px; height: 18px; background: repeating-linear-gradient(90deg,#FBF8F4 0 3px,#B5793A 3px 5px); display:block; }
.brand-name { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -.02em; line-height: 1; }
.brand-sub { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #9A8B78; margin-top: 3px; }
.main-nav { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.nav-link { background: none; border: none; cursor: pointer; padding: 9px 12px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); position: relative; text-decoration: none; display:inline-block; }
.nav-link:hover { color: var(--accent); text-decoration: none; }
.nav-link.is-active { color: var(--ink-soft); }
.nav-link.is-active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent); border-radius: 2px; }
.cart-btn { display: flex; align-items: center; gap: 9px; background: var(--ink); color: var(--bg); border: none; border-radius: 4px; padding: 11px 16px; cursor: pointer; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.cart-btn:hover { background: var(--accent); }
.cart-count { background: var(--accent); color: #fff; min-width: 21px; height: 21px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; padding: 0 6px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 4px; padding: 9px 11px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

/* layout helpers */
.wrap { max-width: 1220px; margin: 0 auto; padding: 0 24px; }
main { display: block; }
.section { max-width: 1220px; margin: 0 auto; padding: 80px 24px; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 12px; }

/* cards */
.card { border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.card-hover:hover { border-color: #D3B489; }

/* footer */
.site-footer { background: var(--brown-darker); color: #C9BCA9; margin-top: 0; }
.footer-grid { max-width: 1220px; margin: 0 auto; padding: 64px 24px 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-title { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #7A6E5E; font-weight: 700; margin-bottom: 16px; }
.footer-link { background: none; border: none; padding: 0; text-align: left; color: #C9BCA9; font-size: 14px; cursor: pointer; text-decoration: none; display:block; }
.footer-link:hover { color: #D3A15E; text-decoration: none; }
.footer-bottom { max-width: 1220px; margin: 0 auto; padding: 0 24px 22px; }
.footer-legal { border-top: 1px solid #3A322A; padding-top: 20px; font-size: 12.5px; line-height: 1.7; color: #8C7F6E; }
.footer-copy { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 16px; font-size: 12.5px; color: #6E6355; }

/* cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(28,23,20,.5); z-index: 60; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 92vw; background: var(--bg); z-index: 61; display: flex; flex-direction: column; box-shadow: -18px 0 44px rgba(28,23,20,.18); animation: slideIn .22s ease; }
.cart-drawer-head { padding: 22px 26px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.cart-drawer-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted-2); line-height: 1; }
.cart-drawer-body { flex: 1; overflow: auto; padding: 20px 26px; }
.cart-line { display: grid; grid-template-columns: 72px 1fr; gap: 14px; border-bottom: 1px solid var(--border-soft); padding-bottom: 16px; margin-bottom: 16px; }
.cart-line-thumb { aspect-ratio: 1/1; border-radius: 5px; overflow: hidden; background: var(--bg-soft); }
.cart-line-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-qty { display: flex; align-items: center; border: 1px solid #DDD2C2; border-radius: 4px; overflow: hidden; }
.cart-qty button { background: #fff; border: none; width: 30px; height: 30px; cursor: pointer; font-size: 16px; color: var(--ink-soft); }
.cart-drawer-foot { border-top: 1px solid var(--border); padding: 22px 26px; background: var(--bg-soft); }

/* cookie bar */
.cookie-bar { position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 70; max-width: 940px; margin: 0 auto; background: #fff; border: 1px solid #E2D6C4; border-radius: 10px; box-shadow: 0 18px 44px rgba(28,23,20,.16); padding: 24px 26px; display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; animation: fadeUp .25s ease; }

.hidden { display: none !important; }

/* form fields */
.field { display: block; }
.field span { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 13px; border: 1px solid #DDD2C2; border-radius: 4px; font-size: 14.5px; background: var(--bg);
}
.field-wide { grid-column: span 2; }
.radio-row { display: flex; align-items: center; gap: 12px; border: 1px solid #DDD2C2; border-radius: 6px; padding: 14px; cursor: pointer; font-size: 14.5px; }
.honeypot { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }

/* misc */
.stat-photo { border-radius: 8px; border: 1px solid #E2D6C4; overflow: hidden; }
.stat-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; background: linear-gradient(0deg, rgba(28,23,20,.55), transparent); color: #F5EEE4; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.photo-frame { position: relative; overflow: hidden; }

/* responsive */
@media (max-width: 980px) {
  .main-nav { display: none; width: 100%; order: 3; flex-direction: column; gap: 0; margin-left: 0; }
  .main-nav.is-open { display: flex; }
  .nav-toggle { display: block; }
  .site-header-inner { flex-wrap: wrap; }
  .nav-link.is-active::after { display: none; }
  .nav-link.is-active { background: var(--bg-soft); border-radius: 4px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cookie-bar { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  h1 { font-size: 36px !important; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 18px; }
  .cart-drawer { width: 100vw; }
}
