/* Bylinková Kosmetika — base styles */
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #F7F2E9;
  color: #2F2B23;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
img { max-width: 100%; display: block; }
a { color: #4A5E3F; text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #2F3D28; }
input, select, textarea, button { font-family: inherit; }
h1, h2, h3, strong.heading {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; background: #F7F2E9; }

/* Top announcement bar */
.topbar { background: #4A5E3F; color: #F7F2E9; font-size: 13px; letter-spacing: .02em; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 9px 24px; display: flex; flex-wrap: wrap; gap: 6px 28px; justify-content: center; text-align: center; }

/* Header */
.site-header { background: #FBF8F2; border-bottom: 1px solid #E6DCCB; position: sticky; top: 0; z-index: 20; }
.site-header-inner { max-width: 1240px; margin: 0 auto; padding: 18px 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 50%; background: #4A5E3F; color: #F7F2E9; display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 22px; font-weight: 600; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; font-weight: 600; color: #2F2B23; }
.brand-sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8A6A4F; }
.header-actions { display: flex; align-items: center; gap: 10px; flex: 1 1 280px; justify-content: flex-end; flex-wrap: wrap; }
.search-form { display: flex; flex: 0 1 260px; min-width: 160px; }
.search-input { width: 100%; height: 42px; padding: 0 16px; border: 1px solid #DCD0BC; border-radius: 999px; background: #F7F2E9; font-size: 14px; color: #2F2B23; outline: none; }
.cart-link { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid #4A5E3F; background: #4A5E3F; color: #FBF8F2; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 10px; text-decoration: none; }
.cart-count { min-width: 22px; height: 22px; border-radius: 11px; background: #F7F2E9; color: #4A5E3F; font-size: 12px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.main-nav { max-width: 1240px; margin: 0 auto; padding: 14px 24px 0; display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; }
.main-nav a { background: none; border: none; padding: 10px 14px 14px; font-size: 14px; font-weight: 600; cursor: pointer; color: #2F2B23; border-bottom: 2px solid transparent; text-decoration: none; }
.main-nav a.active, .main-nav a:hover { color: #4A5E3F; border-bottom-color: #4A5E3F; }

main { flex: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; border: none; text-decoration: none; }
.btn-green { background: #4A5E3F; color: #FBF8F2; padding: 16px 30px; }
.btn-green:hover { background: #3B4C32; color: #FBF8F2; }
.btn-outline { background: transparent; color: #4A5E3F; border: 1px solid #4A5E3F; padding: 16px 26px; }
.btn-outline:hover { background: #4A5E3F; color: #FBF8F2; }
.btn-dark { background: #2F2B23; color: #F7F2E9; padding: 14px 26px; }
.btn-dark:hover { background: #1f1c17; }
.btn-sm-green { background: #4A5E3F; color: #FBF8F2; padding: 12px 16px; font-size: 14px; }
.btn-sm-green:hover { background: #3B4C32; }
.btn-sm-outline { background: transparent; color: #4A5E3F; border: 1px solid #4A5E3F; padding: 10px; font-size: 14px; }
.btn-sm-outline:hover { background: #4A5E3F; color: #FBF8F2; }
.btn-gold { background: #E9C99B; color: #2F2B23; padding: 0 26px; height: 50px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.btn-gold:hover { background: #e0ba82; }
.btn-link { background: none; border: none; color: #4A5E3F; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; padding: 0; }

/* Cards */
.img-box { background: #E6DCCB; overflow: hidden; }
.img-box img { width: 100%; height: 100%; object-fit: cover; }
.cat-card { cursor: pointer; background: #FBF8F2; border: 1px solid #E6DCCB; border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; color: inherit; }
.cat-card:hover { border-color: #B9A88E; }
.cat-card .img-box { height: 150px; border-radius: 14px; }
.product-card { background: #FBF8F2; border: 1px solid #E6DCCB; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.product-card .img-box { aspect-ratio: 1/1; }
.product-card .img-box a { display: block; height: 100%; }
.product-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h3 a { color: inherit; text-decoration: none; }
.product-card h3 a:hover { text-decoration: underline; }

/* Grids */
.grid-auto { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.grid-auto-250 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.grid-auto-230 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.grid-auto-280 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.grid-fit-440 { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); align-items: center; }
.grid-fit-420 { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); align-items: start; }
.grid-fit-380 { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: center; }
.grid-fit-360 { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); align-items: start; }
.grid-fit-280 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-fit-260 { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-fit-150 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  height: 46px; border: 1px solid #DCD0BC; border-radius: 12px; padding: 0 14px; font-size: 15px; background: #fff; color: #2F2B23;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field .err { font-size: 12px; font-weight: 500; color: #A04B2E; }
.field input.has-err, .field select.has-err { border-color: #A04B2E; }

/* Footer */
.site-footer { background: #2F2B23; color: #E9E1D2; margin-top: 40px; }
.site-footer-inner { max-width: 1240px; margin: 0 auto; padding: 64px 24px 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 40px; }
.site-footer h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #E9C99B; margin: 0 0 10px; }
.site-footer a, .site-footer span.link { display: block; font-size: 14px; color: #E9E1D2; text-decoration: none; margin-bottom: 8px; cursor: pointer; }
.site-footer a:hover { color: #FFFFFF; }
.site-footer-bottom { max-width: 1240px; margin: 0 auto; padding: 20px 24px 28px; border-top: 1px solid #4A443A; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #A99F8E; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #2F2B23; color: #F7F2E9; padding: 14px 20px; border-radius: 999px; font-size: 14px; display: none; gap: 16px; align-items: center; z-index: 40; box-shadow: 0 8px 24px rgba(47,43,35,.2); }
.toast.show { display: flex; }
.toast a, .toast button { background: none; border: none; color: #E9C99B; font-weight: 700; cursor: pointer; font-size: 14px; text-decoration: none; }

/* Cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; background: #FBF8F2; border: 1px solid #DCD0BC; border-radius: 20px; padding: 22px; z-index: 50; box-shadow: 0 12px 40px rgba(47,43,35,.18); display: none; flex-direction: column; gap: 14px; }
.cookie-banner.show { display: flex; }
.cookie-banner h2 { margin: 0; font-size: 24px; font-weight: 600; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Accordion */
.accordion-item { border-bottom: 1px solid #E6DCCB; }
.accordion-toggle { width: 100%; background: none; border: none; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; cursor: pointer; text-align: left; color: #2F2B23; }
.accordion-toggle .ttl { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 26px; font-weight: 600; }
.accordion-toggle .sign { font-size: 24px; color: #8A6A4F; }
.accordion-item.faq .accordion-toggle { padding: 20px 0; }
.accordion-item.faq .accordion-toggle .ttl { font-family: inherit; font-size: 17px; font-weight: 600; }
.accordion-item.faq .accordion-toggle .sign { font-size: 22px; }
.accordion-body { margin: 0 0 24px; font-size: 16px; line-height: 1.75; color: #4A443A; max-width: 820px; display: none; }
.accordion-item.faq .accordion-body { margin: 0 0 22px; font-size: 15px; line-height: 1.7; max-width: none; }
.accordion-item.open .accordion-body { display: block; }

/* Qty stepper */
.qty-stepper { display: flex; align-items: center; border: 1px solid #DCD0BC; border-radius: 999px; height: 50px; background: #FBF8F2; }
.qty-stepper button { width: 46px; height: 48px; background: none; border: none; font-size: 20px; cursor: pointer; color: #2F2B23; }
.qty-stepper span { min-width: 28px; text-align: center; font-weight: 600; }
.qty-stepper.sm { height: 40px; }
.qty-stepper.sm button { width: 38px; height: 38px; font-size: 18px; }

/* Chips */
.chip { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid #DCD0BC; background: #FBF8F2; color: #2F2B23; text-decoration: none; display: inline-block; }
.chip.active { background: #4A5E3F; color: #FBF8F2; border-color: #4A5E3F; }
.chip:hover { border-color: #4A5E3F; }

/* Misc */
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #8A6A4F; font-weight: 600; }
.section { max-width: 1240px; margin: 0 auto; padding: 48px 24px 40px; }
.section-narrow { max-width: 880px; margin: 0 auto; padding: 56px 24px 80px; }
.breadcrumb { font-size: 13px; color: #8A7F70; margin-bottom: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: #8A7F70; text-decoration: none; }
.breadcrumb a:hover { color: #4A5E3F; }
.ship-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #E6DCCB; flex-wrap: wrap; }
.ship-row:last-child { border-bottom: none; }
.ship-box { border: 1px solid #E6DCCB; border-radius: 16px; overflow: hidden; margin-bottom: 40px; background: #FBF8F2; }
.radio-row { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 14px; border-radius: 12px; border: 1px solid #E6DCCB; cursor: pointer; font-size: 15px; }
.radio-row.sm { padding: 10px 12px; font-size: 14px; }
.radio-row.active { border-color: #4A5E3F; }

noscript.full-banner { display: block; background: #E9DCC0; color: #2F2B23; text-align: center; padding: 10px 16px; font-size: 14px; }

@media (max-width: 640px) {
  .site-header-inner { padding: 14px 16px 0; }
  .main-nav { padding: 10px 16px 0; }
  .section, .section-narrow { padding-left: 16px; padding-right: 16px; }
}
