/* Raske Rollinger – playful children's clothing theme */
:root {
  --coral: #FF6B6B; --sun: #FFB627; --mint: #2EC4B6; --sky: #5B8DEF; --lilac: #B07CE8;
  --ink: #2B2D42; --muted: #6B6E80; --cream: #FFF8EE; --paper: #FFFFFF; --line: #F0E4D2;
  --radius: 22px; --shadow: 0 10px 30px -12px rgba(43,45,66,.25);
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 17px/1.65 var(--body); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: #fff; padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

/* Announcement bar */
.announce { background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.announce .wrap { display: flex; justify-content: center; gap: 28px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.announce span::before { content: "★"; color: var(--sun); margin-right: 8px; }

/* Header */
.site-header { background: var(--paper); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.logo img { height: 56px; width: auto; }
.menu-toggle { display: none; }
.main-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.main-nav a { font-family: var(--head); font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none; padding: 8px 14px; border-radius: 999px; transition: background .15s; }
.main-nav a:hover { background: #FFF1D6; }
.main-nav a[aria-current] { background: var(--sun); color: var(--ink); }
@media (max-width: 960px) {
  .logo img { height: 46px; }
  .menu-toggle { display: grid; gap: 5px; cursor: pointer; padding: 13px 12px; border-radius: 14px; background: #FFF1D6; border: 0; }
  .menu-toggle span { display: block; width: 24px; height: 3px; border-radius: 3px; background: var(--ink); }
  .main-nav { display: none; }
  .main-nav.open { display: flex; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; padding: 12px 24px 20px; box-shadow: var(--shadow); }
  .main-nav.open a { padding: 12px 16px; font-size: 19px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 600; font-size: 18px; padding: 14px 28px; border-radius: 999px; text-decoration: none; border: 3px solid var(--ink); transition: transform .15s, box-shadow .15s; cursor: pointer; }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 5px 0 var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.btn-ghost { background: #fff; color: var(--ink); }
.btn-ghost:hover { background: #FFF1D6; }
.btn-block { width: 100%; }

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, #FFE3A3 0%, #FFD98A 100%); overflow: hidden; padding: 64px 0 0; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; opacity: .55; }
.hero::before { width: 380px; height: 380px; background: #FFC2B5; right: -90px; top: -120px; }
.hero::after { width: 220px; height: 220px; background: #B9EDE6; left: -70px; top: 160px; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-text { max-width: 760px; margin: 0 auto; }
.kicker { display: inline-block; font-family: var(--head); font-weight: 600; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 4px 16px; margin-bottom: 18px; font-size: 15px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
.lead { font-size: 1.15rem; color: #4A4D63; }
.hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.hero-line { position: relative; z-index: 1; width: min(1100px, 100%); margin: 26px auto 0; animation: sway 6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes sway { 0%, 100% { transform: rotate(-.6deg); } 50% { transform: rotate(.6deg); } }
@media (prefers-reduced-motion: reduce) { .hero-line { animation: none; } }
.wave { display: block; width: 100%; height: 50px; position: relative; z-index: 1; margin-top: -10px; }

/* USPs */
.usps { padding: 10px 0 0; }
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usp { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 16px 18px; box-shadow: 0 2px 0 var(--line); }
.usp-icon { font-size: 28px; }
.usp strong { display: block; font-family: var(--head); font-weight: 600; }
.usp span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .usp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .usp-grid { grid-template-columns: 1fr; } }

/* Sections */
.section { padding: 56px 0; }
.section-tint { background: #fff; border-radius: 48px; margin: 0 12px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head p { margin: 0; color: var(--muted); }
.section-head h2 { margin: 0; }
.more { font-family: var(--head); font-weight: 600; color: var(--ink); text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cat-card { background: var(--bg); border-radius: var(--radius); padding: 14px 14px 20px; text-decoration: none; color: var(--ink); text-align: center; border: 3px solid transparent; transition: transform .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--c); }
.cat-card img { border-radius: 16px; margin-bottom: 12px; mix-blend-mode: multiply; }
.cat-name { display: block; font-family: var(--head); font-weight: 700; font-size: 1.2rem; }
.cat-age { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 800; background: var(--c); color: #fff; border-radius: 999px; padding: 2px 12px; }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 0 var(--line); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-link { color: inherit; text-decoration: none; display: block; height: 100%; }
.card-img { position: relative; }
.card-img img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 14px 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.card-cat { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card h3 { margin: 0; font-size: 1.15rem; }
.card-colour { font-size: 14px; color: var(--muted); }
.price { font-family: var(--head); font-weight: 700; font-size: 1.15rem; margin-top: 6px; color: var(--ink); }
.price s { font-family: var(--body); font-weight: 400; font-size: .85em; color: var(--muted); margin-left: 6px; }
.badge { position: absolute; top: 14px; left: 14px; font-family: var(--head); font-weight: 600; font-size: 14px; padding: 4px 14px; border-radius: 999px; background: var(--sky); color: #fff; border: 2px solid var(--ink); transform: rotate(-4deg); }
.badge-nyhed { background: var(--mint); }
.badge-udsalg { background: var(--coral); }
.badge-bestseller { background: var(--sun); color: var(--ink); }

/* Page hero (sub pages + listings) */
.page-hero { background: var(--hero-bg, #FFE3A3); padding: 54px 0 0; position: relative; }
.page-hero h1 { margin-bottom: .3em; }
.page-hero .lead { max-width: 640px; margin: 0; }
.page-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 10px; }
.page-hero-img { width: 200px; border-radius: 30px; mix-blend-mode: multiply; transform: rotate(4deg); }
.page-hero .kicker { border-color: var(--hero-c, var(--ink)); }
@media (max-width: 700px) { .page-hero-img { display: none; } }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filter-row a { font-family: var(--head); font-weight: 600; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 6px 16px; }
.filter-row a:hover { border-color: var(--c, var(--ink)); }
.filter-row a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.count { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; }

/* Content (markdown) */
.content { font-size: 1.05rem; }
.content h2 { margin-top: 1.8em; font-size: 1.6rem; }
.content h3 { margin-top: 1.5em; }
.content h2:first-child, .content h3:first-child { margin-top: 0; }
.content ul, .content ol { padding-left: 1.3em; }
.content li { margin: .3em 0; }
.content ul li::marker { color: var(--coral); }
.content table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 2px 0 var(--line); margin: 1.2em 0; font-size: .97rem; }
.content th, .content td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.content th { background: #FFF1D6; font-family: var(--head); font-weight: 600; }
.content tr:last-child td { border-bottom: 0; }
.content blockquote { margin: 1.4em 0; padding: 18px 22px; background: #E2F7F4; border-radius: 18px; border-left: 6px solid var(--mint); }
.content blockquote p { margin: 0; }
.content hr { border: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--coral) 0 14px, transparent 14px 22px); margin: 2.4em 0; }
.content a { color: var(--sky); font-weight: 700; }
.page .content article, .page .section .content { background: #fff; padding: 40px clamp(20px, 5vw, 56px); border-radius: 32px; box-shadow: 0 2px 0 var(--line); }

/* Contact cards (used inside markdown) */
.contact-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0 0 1.6em; }
.contact-cards > div { background: var(--cream); border-radius: 20px; padding: 20px 22px; border: 2px solid var(--line); }
.contact-cards strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.contact-cards .icon { font-size: 26px; display: block; margin-bottom: 6px; }
@media (max-width: 600px) { .contact-cards { grid-template-columns: 1fr; } }

/* Story block on home */
.story .content { max-width: 820px; margin: 0 auto; text-align: center; }
.story .content p { font-size: 1.15rem; }

/* Product page */
.crumbs { padding: 22px 0; font-size: 15px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 4px; }
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.product-media { position: relative; border-radius: 32px; overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 110px; }
.product-media .badge { font-size: 17px; top: 22px; left: 22px; }
.product-info h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 6px 0 8px; }
.price.big { font-size: 1.8rem; margin: 0 0 12px; }
.save { font-family: var(--body); font-size: 14px; font-weight: 800; background: var(--coral); color: #fff; padding: 3px 10px; border-radius: 999px; vertical-align: middle; }
.buy { margin: 22px 0; }
.buy fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.buy legend { font-family: var(--head); font-weight: 600; margin-bottom: 10px; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.sizes input { position: absolute; opacity: 0; }
.sizes span { display: inline-block; min-width: 56px; text-align: center; padding: 8px 14px; border-radius: 14px; background: #fff; border: 2px solid var(--line); font-weight: 700; cursor: pointer; transition: all .15s; }
.sizes label:hover span { border-color: var(--ink); }
.sizes input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.sizes input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.hint { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.facts { list-style: none; padding: 0; margin: 0 0 18px; background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 2px 0 var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 14px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li:last-child { border-bottom: 0; }
.facts span { text-align: right; color: #4A4D63; }
.perks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; font-weight: 700; }
.product-details { max-width: 820px; margin: 56px 0 0; background: #fff; padding: 36px clamp(20px, 5vw, 48px); border-radius: 32px; box-shadow: 0 2px 0 var(--line); }
.related { padding-top: 56px; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; gap: 28px; } .product-media { position: relative; top: 0; } }

/* 404 */
.notfound { text-align: center; }
.notfound img { margin: 0 auto 20px; animation: roll 4s ease-in-out infinite; }
@keyframes roll { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg); } }
.notfound .btn { margin: 6px; }

/* Footer */
.site-footer { margin-top: 70px; color: #D8DAE6; }
.footer-wave { display: block; width: 100%; height: 50px; }
.footer-body { background: var(--ink); padding: 30px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand img { width: 260px; margin-bottom: 10px; }
.footer-brand p { font-size: 15px; max-width: 320px; }
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 15px; }
.site-footer a { color: #D8DAE6; text-decoration: none; }
.site-footer a:hover { color: var(--sun); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); margin-top: 30px; padding-top: 20px; font-size: 13px; }
.pay { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: rgba(255,255,255,.1); border-radius: 8px; padding: 3px 10px; font-weight: 700; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
