/* rumici.cz — jeden styl pro celý web. Barvy a písma podle reference/design.json (šablona Astra na WordPressu). */
:root {
  --yellow: #f9c349;
  --amber: #ffb100;
  --dark: #1e1810;
  --text: #62615c;
  --light: #f8f7f3;
  --white: #fff;
  --footer-bar: #37474f;
  --line: #e6e3da;
  --font-body: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head: 'Merriweather', Georgia, serif;
  --container: 1200px;
  --narrow: 900px;
  --gap: clamp(16px, 3vw, 32px);
  --radius: 30px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.age-gate-open { overflow: hidden; }
body { margin: 0; font: 400 16px/1.6 var(--font-body); color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--amber); text-decoration: none; }
a:hover, a:focus-visible { color: var(--dark); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 700; color: var(--dark); line-height: 1.3; margin: 1.4em 0 .6em; }
h1 { font-size: clamp(30px, 4vw, 40px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: clamp(19px, 2.2vw, 24px); }
h4 { font-size: 20px; }
p, ul, ol, table, figure { margin: 0 0 1.2em; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--white); padding: 8px 12px; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gap)); margin: 0 auto; padding: 0 var(--gap); }
.container--narrow { max-width: calc(var(--narrow) + 2 * var(--gap)); }
.center { text-align: center; }

.btn { display: inline-block; background: var(--yellow); color: var(--white); font-weight: 600; padding: 12px 28px; border-radius: 4px; line-height: 1.3; text-align: center; transition: background .2s; }
.btn:hover, .btn:focus-visible { background: var(--amber); color: var(--white); text-decoration: none; }
.btn--pill { border-radius: var(--radius); }
.btn--buy { font-size: 18px; padding: 14px 36px; border-radius: var(--radius); }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 1.2em; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.site-logo img { width: 150px; height: auto; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.menu, .menu__sub { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu__item { position: relative; display: flex; align-items: center; }
.menu__item > a { color: var(--text); font-size: 15px; padding: 8px 0; }
.menu__item > a:hover { color: var(--amber); text-decoration: none; }
.menu__toggle { background: none; border: 0; color: var(--text); cursor: pointer; padding: 4px; font-size: 12px; }
.menu__sub { display: none; position: absolute; top: 100%; left: 0; min-width: 280px; background: var(--white); box-shadow: 0 8px 24px rgb(0 0 0 / 12%); padding: 8px 0; }
.menu__sub a { display: block; padding: 8px 18px; color: var(--text); font-size: 14px; }
.menu__item--has-sub:hover .menu__sub, .menu__item--has-sub:focus-within .menu__sub, .menu__item.is-open .menu__sub { display: block; }
.icon { width: 18px; height: 18px; fill: currentColor; display: block; }
.menu-toggle { display: none; margin-left: auto; background: var(--yellow); color: var(--white); border: 0; border-radius: var(--radius); padding: 8px 18px; font: 600 15px var(--font-body); cursor: pointer; }
.site-nav__cta { padding: 8px 28px; font-weight: 400; }

.breadcrumbs { font-size: 14px; padding-top: 18px; padding-bottom: 6px; }
.site-main { min-height: 50vh; padding-bottom: 64px; }

.section { padding-top: 48px; padding-bottom: 16px; }
.section--center { text-align: center; }
.section__mark { display: block; width: 30px; height: 38px; margin: 0 auto 16px; background: var(--yellow); }
.section--center h2 { margin-top: 0; }
.section--center h2 a { color: inherit; }
.section__lead { max-width: 640px; margin: 0 auto 32px; font-size: 15px; }

.hero { background: radial-gradient(circle at 45% 52%, #fde6ad 0 32%, transparent 32.2%); padding: 56px 0 40px; }
.hero__inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: var(--gap); align-items: center; }
.hero__intro { text-align: center; }
.hero__title { font-size: clamp(36px, 4.5vw, 52px); margin: 0 0 .4em; }
.hero__taste { font-family: var(--font-head); font-weight: 700; color: var(--text); font-size: 17px; }
.hero__label { font-family: var(--font-head); font-weight: 700; color: var(--dark); margin-top: 24px; }
.hero__facts { list-style: none; display: flex; justify-content: center; gap: 12px; padding: 0; margin: 20px 0 0; }
.hero__facts li { border: 1px solid var(--dark); border-radius: 6px; padding: 8px 16px; display: flex; flex-direction: column; min-width: 72px; }
.hero__facts strong { font-family: var(--font-head); color: var(--dark); font-size: 18px; }
.hero__facts span { font-size: 11px; text-transform: uppercase; }
.hero__image img { margin: 0 auto; max-height: 420px; width: auto; }
.hero__subtitle { font-size: 20px; margin-top: 0; text-align: center; }
.hero__text p { font-size: 14px; text-align: center; }

.product-grid { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-card__link { display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--dark); height: 100%; }
.product-card__link:hover { text-decoration: none; }
.product-card__image { width: 100%; aspect-ratio: 1; display: block; overflow: hidden; margin-bottom: 12px; }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; }
.product-card__cat { font-size: 12px; color: var(--text); }
.product-card__name { font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.35; margin: 4px 0; }
.page-home .product-card__name { font-family: var(--font-body); }
.product-card__price { color: var(--amber); font-size: 14px; }
.product-card__price del { color: var(--text); margin-right: 4px; }

.promo-card { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--light); width: min(100%, 420px); aspect-ratio: 1 / .9; color: var(--dark); padding: 24px; }
.promo-card:hover { text-decoration: none; }
.promo-card img { max-width: 60%; }
.promo-card__title { font-family: var(--font-head); font-weight: 700; margin-top: 12px; }
.promo-card__note { color: var(--amber); font-weight: 600; font-size: 14px; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.features img { width: 72px; height: 72px; margin: 0 auto 12px; }
.features h3 { margin: 0 0 8px; font-size: 17px; }
.features p { font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; }
.split__text { grid-column: 2; }
.split__text h2 { margin-top: 0; }

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; text-align: left; }
.post-card { background: var(--light); display: flex; flex-direction: column; }
.post-card__image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-card__body { padding: 16px 20px 24px; }
.post-card__title { font-size: 17px; margin: 0 0 8px; }
.post-card__title a { color: var(--dark); }
.post-card__meta { font-size: 12px; margin: 0 0 8px; }
.post-card__excerpt { font-size: 14px; margin: 0; }
.post-list .post-card { background: none; flex-direction: row; gap: var(--gap); padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-list .post-card__image { flex: 0 0 40%; }
.post-list .post-card__body { padding: 0; }
.post-list .post-card__title { font-size: clamp(20px, 2.4vw, 26px); }

.archive-header { padding: 32px 0 16px; }
.archive-title { color: var(--yellow); margin: 0 0 16px; }
.archive-description { font-size: 17px; }
.result-count { font-size: 14px; }
.lp-list { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); padding-bottom: 48px; }
.lp-card { background: var(--light); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.lp-card__title { font-size: clamp(20px, 2.4vw, 24px); margin: 0; }
.lp-card__title a { color: var(--dark); }
.lp-card__headline { margin: 0; font-size: 16px; }
.lp-card__meta { margin: 0; font-size: 12px; }
.lp-card__cta { align-self: flex-start; margin-top: auto; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid var(--line); border-radius: 4px; color: var(--text); }
.pagination__current { background: var(--yellow); border-color: var(--yellow); color: var(--white) !important; }

.layout-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 48px; padding-top: 24px; }
.entry__header h1 { margin-top: 16px; }
.entry__meta { font-size: 14px; }
.entry__image img { width: 100%; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 14px; }
.toc__title { font-size: 13px; }
.toc ol { padding-left: 18px; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--text); text-decoration: underline; }

.prose { font-size: 16px; }
.prose img { margin: 0 auto; }
.prose figure.center img, .prose figure img { margin: 0 auto; }
.prose .cols { display: flex; gap: var(--gap); margin-bottom: 1.2em; }
.prose .col { flex: 1; min-width: 0; }
.prose .media-text { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; margin-bottom: 1.2em; }
.prose .media-text--right .media-text__media { order: 2; }
.prose .icon-list { list-style: none; padding: 0; }
.prose .icon-list li { padding-left: 26px; position: relative; }
.prose .icon-list li::before { content: '✓'; position: absolute; left: 0; color: var(--amber); font-weight: 700; }
.prose .related-links { padding-left: 18px; }
.prose table { border-collapse: collapse; width: 100%; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.rating { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--dark); }
.rating__stars { color: #ddd; background: linear-gradient(90deg, var(--amber) var(--fill, 100%), #ddd var(--fill, 100%)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: 2px; }
.rating--5 .rating__stars { --fill: 100%; } .rating--4-5 .rating__stars { --fill: 90%; } .rating--4 .rating__stars { --fill: 80%; }
.rating--3-5 .rating__stars { --fill: 70%; } .rating--3 .rating__stars { --fill: 60%; } .rating--2-5 .rating__stars { --fill: 50%; }
.rating--2 .rating__stars { --fill: 40%; } .rating--1-5 .rating__stars { --fill: 30%; } .rating--1 .rating__stars { --fill: 20%; }

.product { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 32px 0; }
.product__gallery img { margin: 0 auto; max-height: 520px; width: auto; }
.product__title { margin-top: 0; }
.product__price { font-size: 22px; color: var(--amber); font-weight: 600; }
.product__price del { color: var(--text); font-size: 16px; }
.product__meta, .product__shipping { list-style: none; padding: 16px 0 0; margin: 16px 0 0; border-top: 1px solid var(--line); font-size: 14px; }
.product__shipping { border: 0; padding-top: 8px; }
.product-section { display: grid; grid-template-columns: 200px 1fr; gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.product-section__title { margin: 0; font-size: 22px; }
.attributes { border-collapse: collapse; }
.attributes th, .attributes td { text-align: left; padding: 6px 24px 6px 0; font-size: 14px; }
.attributes th { color: var(--dark); font-weight: 600; }
.related h2 { font-size: 24px; }

.site-footer { background: var(--dark); color: var(--white); margin-top: 32px; }
.site-footer__links { display: flex; gap: 16px; padding-top: 48px; padding-bottom: 48px; }
.site-footer__links a { color: var(--yellow); font-size: 14px; }
.site-footer__bar { background: var(--footer-bar); font-size: 13px; }
.site-footer__bar-inner { display: flex; flex-wrap: wrap; gap: 8px 48px; padding-top: 16px; padding-bottom: 16px; }

.age-gate { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / 60%); display: flex; align-items: center; justify-content: center; padding: 16px; }
.age-gate[hidden] { display: none; }
.age-gate__box { background: var(--white); max-width: 420px; padding: 24px 32px; text-align: center; box-shadow: 0 10px 40px rgb(0 0 0 / 30%); }
.age-gate__title { font: 400 24px/1.1 Arial, sans-serif; color: #000; margin: 0 0 16px; }
.age-gate__yes { background: #3dbb29; color: var(--white); border: 0; border-radius: 20px; padding: 10px 40px; font: 400 14px var(--font-body); cursor: pointer; box-shadow: 0 2px 6px rgb(0 0 0 / 25%); }

.not-found { min-height: 40vh; }

@media (max-width: 1000px) {
  .hero__inner { grid-template-columns: 1fr; }
  .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .layout-sidebar { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 16px var(--gap) 24px; box-shadow: 0 8px 24px rgb(0 0 0 / 12%); }
  .site-nav.is-open { display: flex; }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu__item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu__item > a { flex: 1; padding: 12px 0; }
  .menu__sub { position: static; box-shadow: none; min-width: 0; width: 100%; padding: 0 0 8px 12px; }
  .menu__item--has-sub:hover .menu__sub { display: none; }
  .menu__item.is-open .menu__sub { display: block; }
  .site-nav__cta { align-self: flex-start; margin-top: 12px; }
}
@media (max-width: 760px) {
  .product-grid, .features, .post-grid, .split, .product, .product-section, .prose .media-text { grid-template-columns: 1fr; }
  .split__text { grid-column: 1; }
  .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .prose .cols { flex-direction: column; }
  .post-list .post-card { flex-direction: column; }
}
