/* RAFAEL – vzhled celého webu (návrh "Rafael Prague") nad šablonou Samba */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,400..800&family=Source+Sans+3:ital,wght@0,400;0,600;1,400&display=swap");

:root {
  --rp-paper: #f5f9f9; --rp-surface: #ffffff; --rp-ink: #0f2e2a; --rp-muted: #4b625f; --rp-line: #d5e3e2;
  --rp-mint: #bfe8ec; --rp-pine: #1b5e50; --rp-deep: #0f2e2a; --rp-sale: #b2452e; --rp-ok: #1f7a4d;
  --rp-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --rp-body: "Source Sans 3", "Segoe UI", Roboto, sans-serif;
}

/* Základ */
body { font-family: var(--rp-body); color: var(--rp-ink); background: var(--rp-paper); }
body .content-wrapper, body #content-wrapper { background: transparent; }
body h1, body h2, body h3, body h4, body .h1, body .h2, body .h3,
body .category-title, body .p-detail-inner-header h1 { font-family: var(--rp-display); color: var(--rp-ink); letter-spacing: -0.01em; text-wrap: balance; }
body a { color: var(--rp-pine); }
body a:hover { color: var(--rp-deep); }

/* Hlavička a menu */
body #header, body .header-top { background: color-mix(in srgb, var(--rp-paper) 94%, transparent); }
body #header { border-bottom: 1px solid var(--rp-line); }
@media (min-width: 992px) {
  body .menu-level-1 > li > a, body .menu-level-1 > li > a b { font-family: var(--rp-body); font-weight: 600; color: var(--rp-muted); }
  body .menu-level-1 > li > a:hover, body .menu-level-1 > li > a:hover b, body .menu-level-1 > li.active > a b { color: var(--rp-ink); }
}

/* Tlačítka */
body .btn, body button.btn { border-radius: 999px; font-family: var(--rp-body); font-weight: 600; letter-spacing: 0; text-transform: none; transition: transform .15s ease, background .15s ease; }
body .btn-primary, body .btn-cart, body .btn-conversion, body .add-to-cart-button, body .next-step-forward, body #submit-order {
  background: var(--rp-pine) !important; border-color: var(--rp-pine) !important; color: #fff !important;
}
body .btn-primary:hover, body .btn-cart:hover, body .btn-conversion:hover, body .add-to-cart-button:hover { background: var(--rp-deep) !important; border-color: var(--rp-deep) !important; transform: translateY(-1px); }
body .btn-default, body .btn-secondary { background: transparent; color: var(--rp-ink); border: 1.5px solid var(--rp-line); }
body .btn-default:hover, body .btn-secondary:hover { border-color: var(--rp-pine); color: var(--rp-ink); background: transparent; }

/* Formuláře */
body .form-control, body input[type=text].form-control, body input[type=email].form-control, body textarea.form-control, body select.form-control {
  border: 1.5px solid var(--rp-line); border-radius: 12px; background: var(--rp-surface); color: var(--rp-ink); box-shadow: none; font-family: var(--rp-body);
}
body .form-control:focus { border-color: var(--rp-pine); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rp-pine) 18%, transparent); }
body .contact-form, body form#formContact {
  max-width: 720px; padding: clamp(20px, 3vw, 32px); margin: 8px 0 40px; border-radius: 20px; background: var(--rp-surface); border: 1px solid var(--rp-line);
}
body .contact-form fieldset.box { border-radius: 14px; background: var(--rp-paper); border: 1px solid var(--rp-line); }
body .contact-form h2 { font-size: 18px; }

/* Výpis produktů (kategorie, související) */
body .products-block .product .p, body .products .product .p { background: var(--rp-surface); border: 1px solid var(--rp-line); border-radius: 18px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
body .products-block .product .p:hover { border-color: var(--rp-pine); box-shadow: 0 0 0 1px var(--rp-pine); }
body .products .product .name { font-family: var(--rp-display); font-weight: 600; color: var(--rp-ink); }
body .price-final, body .price-final strong { font-family: var(--rp-display); font-weight: 700; color: var(--rp-ink); font-variant-numeric: tabular-nums; }
body .price-standard { color: var(--rp-muted); }
body .price-save { color: var(--rp-sale); font-weight: 600; }
body .availability, body .availability span { font-weight: 600; }

/* Detail produktu */
body .p-detail .p-final-price-wrapper .price-final { font-size: 32px; }
body .p-detail .p-image, body .p-detail .p-thumbnails a { border-radius: 18px; overflow: hidden; }
body .shp-tabs-wrapper, body .p-detail-tabs-wrapper { border-color: var(--rp-line); }

/* Obsahové stránky postavené z bloků návrhu (#rp): skryjeme nadpis a prázdný stav Shoptetu */
body:has(#rp.rp-sub) .pageArticleDetail > header,
body:has(#rp.rp-sub) .category-title,
body:has(#rp.rp-sub) .empty-content-category,
body:has(#rp.rp-sub) .category-perex.empty-content { display: none !important; }
body:has(#rp.rp-sub) .content-inner, body:has(#rp.rp-sub) .category-perex, body:has(#rp.rp-sub) .pageArticleDetail { max-width: none; padding: 0; margin: 0; }
#rp.rp-sub { border-radius: 24px; margin: 24px 0 40px; }
#rp .rp-pagehead { background: linear-gradient(90deg, #9ed9e6, #93ccd9); color: var(--ink); }
#rp .rp-pagehead .rp-wrap { padding-block: clamp(48px, 7vw, 88px); display: grid; gap: 16px; }
#rp .rp-pagehead h1 { font-size: clamp(36px, 22px + 3.4vw, 64px); font-weight: 700; font-stretch: 112%; letter-spacing: -0.02em; max-width: 16ch; }
#rp .rp-pagehead p { font-size: 20px; max-width: 52ch; color: #1d3f3a; }
#rp .rp-pagehead .rp-eyebrow { color: #1d3f3a; }
#rp .rp-prose { display: grid; gap: 18px; max-width: 68ch; color: var(--muted); font-size: 18px; }
#rp .rp-prose strong { color: var(--ink); }
#rp .rp-prose .rp-lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 18px + 1vw, 30px); line-height: 1.25; color: var(--ink); text-wrap: balance; }
#rp .rp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { #rp .rp-two { grid-template-columns: minmax(0, 1fr); } }
#rp .rp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) { #rp .rp-facts { grid-template-columns: minmax(0, 1fr); } }
#rp .rp-fact { padding: 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 6px; }
#rp .rp-fact strong { font-family: var(--font-display); font-size: 26px; color: var(--ink); }
#rp .rp-fact span { color: var(--muted); font-size: 15px; }
#rp .rp-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; background: var(--deep, #0f2e2a); }
#rp .rp-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#rp .rp-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: rp-step; }
#rp .rp-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; background: none; padding: 0; counter-increment: rp-step; }
#rp .rp-steps li::before { content: counter(rp-step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--pine); color: var(--pine-ink); font: 700 18px var(--font-display); }
#rp .rp-steps strong { display: block; font-family: var(--font-display); color: var(--ink); }
#rp .rp-steps span { color: var(--muted); }
#rp .rp-cta-band { background: var(--mint); }
#rp .rp-cta-band .rp-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-block: 40px; }
#rp .rp-cta-band h2 { font-size: clamp(24px, 18px + 1.4vw, 34px); }

/* Patička podle návrhu (vkládá rafael-site.js) */
body #footer { background: var(--rp-deep) !important; color: #d7e9e6; margin-top: 0; }
body #footer.rp-has-footer .footer-rows { display: none; }
.rp-footer { max-width: 1200px; margin: 0 auto; padding: 48px 16px 28px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; font-family: var(--rp-body); text-align: left; }
@media (max-width: 760px) { .rp-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rp-footer .rp-f-brand { grid-column: 1 / -1; } }
.rp-footer img { width: 140px; height: auto; filter: invert(1); margin-bottom: 14px; display: block; }
.rp-footer p { margin: 0; max-width: 34ch; color: #b9d6d1; line-height: 1.55; }
.rp-footer .rp-f-address { margin-top: 14px; font-size: 14px; color: #8fbdb5; }
.rp-footer h4 { margin: 0 0 10px; font: 600 12px var(--rp-display); font-stretch: 125%; letter-spacing: .16em; text-transform: uppercase; color: #8fbdb5; }
.rp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rp-footer li { background: none; padding: 0; margin: 0; }
.rp-footer a, body #footer .rp-footer a { color: #eef7f5; text-decoration: none; }
.rp-footer a:hover { text-decoration: underline; color: #fff; }
body #footer .footer-bottom-full-width { background: transparent !important; border-top: 1px solid rgba(255,255,255,.12); }
body #footer .footer-bottom, body #footer .footer-bottom a, body #footer .footer-bottom strong { color: #8fbdb5 !important; font-size: 14px; }
body #footer .footer-bottom, body #footer .footer-bottom-full-width .container { background: transparent !important; }

/* Hodnocení produktů a obchodu (doplněk Shoptetu) */
body .stars .star, body .stars .star::before { color: #c9dcd9; }
body .stars .star-on, body .stars .star-on::before, body .stars .star-half, body .stars .star-half::before { color: var(--rp-pine) !important; }
body .stars-label, body .js-ratingDialogTrigger { font-family: var(--rp-body); font-weight: 600; color: var(--rp-pine); }
body .js-ratingDialogTrigger:hover { color: var(--rp-deep); text-decoration: underline; }
body .vote-wrap, body .votes-wrap .vote-wrap { border: 1px solid var(--rp-line); border-radius: 16px; background: var(--rp-surface); padding: 16px 20px; margin-bottom: 12px; }
