/* Historian Testshop: plain, stable styling. No web fonts, no animations other
   than what the slider libraries do themselves. */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --ink: #18181b;
  --muted: #52525b;
  --line: #e4e4e7;
  --surface: #f4f4f5;
  --accent: #1d4ed8;
  --radius: 10px;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header / footer */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.site-header__logo { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.site-footer { margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }

/* Sections */
.section { padding: 32px 0; border-bottom: 1px solid var(--line); }
.section__title { font-size: 1.5rem; margin: 0 0 16px; }

.case-intro { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; }
.case-intro__badge { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.case-intro__title { margin: 2px 0 4px; font-size: 1.05rem; }
.case-intro__summary { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Product cards (shared by every slider; "Senest sete" uses .rv-item) */
.product-card, .rv-item { padding: 0 8px; }
.product-card__link, .rv-item__link { display: block; color: inherit; text-decoration: none; }
.product-card__image, .rv-item__image { width: 100%; aspect-ratio: 1; border-radius: var(--radius); background: var(--surface); }
.product-card__title, .rv-item__title { display: block; margin-top: 8px; font-weight: 600; font-size: 0.95rem; }
.product-card__price, .rv-item__price { display: block; color: var(--muted); font-size: 0.9rem; }

/* Slick: room for the default theme arrows and dark arrow glyphs */
.product-slider, .blog-slider, .rv-carousel { margin: 0 28px 40px; }
.slick-prev::before, .slick-next::before { color: var(--ink); }
.slick-dots { bottom: -32px; }

/* "Senest sete": its own arrow markup */
.rv-carousel { position: relative; }
.rv-carousel__prev, .rv-carousel__next { position: absolute; top: 40%; z-index: 1; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 1.2rem; line-height: 1; }
.rv-carousel__prev { left: -30px; }
.rv-carousel__next { right: -30px; }
.rv-carousel__prev.slick-disabled, .rv-carousel__next.slick-disabled { opacity: 0.3; cursor: default; }

/* Blog cards */
.blog-card { padding: 0 8px; }
.blog-card__link { display: block; color: inherit; text-decoration: none; }
.blog-card__image { width: 100%; border-radius: var(--radius); }
.blog-card__title { margin: 10px 0 4px; font-size: 1.05rem; }
.blog-card__excerpt { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Hero (case 10) */
.hero { position: relative; display: block; margin-top: 8px; }
.hero__slide { position: relative; overflow: hidden; background: #ddd; }
.hero__link { display: block; position: relative; aspect-ratio: 1600 / 600; }
.hero__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(16px); transform: scale(1.1); }
.hero__image { position: relative; width: 100%; height: 100%; object-fit: cover; }
.hero__arrow { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.85); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }
.hero__pagination { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.hero__bullet { position: relative; width: 36px; height: 4px; padding: 0; border: 0; border-radius: 2px; background: rgb(255 255 255 / 0.5); overflow: hidden; cursor: pointer; }
.hero__progress { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.hero__bullet--active .hero__progress { transform: scaleX(var(--hero-progress, 0)); }
@media (max-width: 749px) { .hero__link { aspect-ratio: 750 / 900; } }

/* Campaign strip (case 2) */
.campaigns { position: relative; padding-bottom: 36px; }
.campaign-card__link { display: block; color: inherit; text-decoration: none; }
.campaign-card__image { width: 100%; border-radius: var(--radius); }
.campaign-card__title { display: block; margin-top: 8px; font-weight: 700; }
.campaign-card__text { display: block; color: var(--muted); font-size: 0.9rem; }
.campaigns .swiper-button-prev, .campaigns .swiper-button-next { top: 40%; color: var(--ink); }
.campaigns .swiper-pagination { bottom: 0; }

/* Embla carousel with its own scrollbar, like matas.dk (case 11). As on Matas,
   neither the viewport nor any overflow clips the slides: the grid wrapper
   clips with clip-path: inset(0), and the promo image (z-index 1) covers the
   slides that run in under it. The full-width .promo-layout has
   overflow: hidden, so that is the nearest *overflow* clipper. */
.promo-layout { overflow: hidden; }
.promo-layout__content { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; clip-path: inset(0); }
.promo-layout__image { position: relative; z-index: 1; display: block; min-height: 320px; }
.promo-layout__image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 900px) { .promo-layout__content { grid-template-columns: 1fr; } }
.promo-carousel__header { display: flex; align-items: center; gap: 12px; margin: 0 8px 16px; }
.promo-carousel__title { margin: 0 auto 0 0; font-size: 1.5rem; }
.promo-carousel__shop { color: var(--ink); font-weight: 600; }
.promo-carousel__button { width: 40px; height: 40px; border: 1px solid var(--ink); border-radius: 50%; background: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.promo-carousel__button:disabled { opacity: 0.3; cursor: default; }
.promo-carousel__container { display: flex; touch-action: pan-y pinch-zoom; }
.promo-carousel__slide { flex: 0 0 25%; min-width: 0; }
@media (max-width: 1024px) { .promo-carousel__slide { flex-basis: 33.333%; } }
@media (max-width: 640px) { .promo-carousel__slide { flex-basis: 50%; } }
.promo-scrollbar { position: relative; height: 40px; margin: 8px 8px 0; }
.promo-scrollbar__track { position: absolute; left: 0; right: 0; top: 19px; height: 2px; background: var(--line); cursor: pointer; }
.promo-scrollbar__track::before { content: ""; position: absolute; inset: -12px 0; }
.promo-scrollbar__thumb { position: absolute; top: -16px; height: 34px; display: flex; align-items: center; cursor: grab; touch-action: none; }
.promo-scrollbar__fill { width: 100%; height: 2px; background: var(--ink); }

/* Swiper with <a href="#"> arrows (case 6a) */
.anchor-slider { position: relative; }
.anchor-slider__arrow { display: inline-block; margin-top: 12px; margin-right: 8px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); }
.anchor-slider__arrow--disabled { opacity: 0.35; pointer-events: none; }

/* Slick with a link as "next" (case 6b) */
.link-slider { position: relative; }
.link-slider__prev, .link-slider__next { display: inline-block; margin-right: 8px; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font: inherit; cursor: pointer; }
.link-slider .product-slider { margin-bottom: 16px; }

/* Virtual Swiper (case 7) */
.virtual-slider { position: relative; padding: 0 40px; }
.virtual-slider .swiper-button-prev, .virtual-slider .swiper-button-next { top: 40%; color: var(--ink); }

/* Native scroll-snap (case 5) */
.snap { position: relative; padding: 0 40px; }
.snap__track { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.snap__track > .product-card { flex: 0 0 calc((100% - 3 * 16px) / 4); padding: 0; scroll-snap-align: start; }
@media (max-width: 1024px) { .snap__track > .product-card { flex-basis: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 640px) { .snap__track > .product-card { flex-basis: calc((100% - 16px) / 2); } }
.snap__button { position: absolute; top: 38%; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; }
.snap__button--prev { left: 0; }
.snap__button--next { right: 0; }
