/*
Theme Name: Folie-hus Blocksy Child
Description: Stabilt child theme til Folie-hus.dk med Blocksy som parent theme.
Author: Folie-hus.dk
Template: blocksy
Version: 0.6.14
Text Domain: folie-hus-blocksy-child
*/

:root {
  --fh-ink: #1d2a3d;
  --fh-paper: #f7f4ee;
  --fh-red: #d82821;
  --fh-green: #2f674f;
  --fh-line: #dedbd4;
}

/* De færdige løsninger forklares visuelt. Den mørke nordiske tone og
   gradienten holder teksten rolig og læsbar på både desktop og mobil. */
.fh-solutions .fh-solution {
  position: relative;
  isolation: isolate;
  min-height: 330px;
  overflow: hidden;
  color: #fff;
  background-position: center;
  background-size: cover;
  border: 0;
}

.fh-solutions .fh-solution::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(15, 28, 42, .18), rgba(15, 28, 42, .86));
}

.fh-solutions .fh-solution:nth-child(1) {
  background-image: url('https://folie-hus.dk/staging/wp-content/uploads/2026/11/hero-bildekoration-web.jpg');
}

.fh-solutions .fh-solution:nth-child(2) {
  background-image: url('https://folie-hus.dk/staging/wp-content/uploads/2026/11/hero-vinduesfolie-web.jpg');
}

.fh-solutions .fh-solution:nth-child(3) {
  background-image: url('https://folie-hus.dk/staging/wp-content/uploads/2026/11/hero-interioer-rose-gold-web.jpg');
}

.fh-solutions .fh-solution:nth-child(4) {
  background-image: url('https://folie-hus.dk/staging/wp-content/uploads/2026/11/hero-grafisk-design-web.jpg');
}

.fh-solutions .fh-solution :is(h3, p, a) {
  color: inherit;
}

.fh-solutions .fh-solution .fh-num {
  color: #fff;
}

.fh-solutions .fh-solution a {
  text-decoration-color: var(--fh-red);
}

@media (max-width: 767px) {
  .fh-solutions .fh-solution {
    min-height: 390px;
    background-position: center;
  }
}

/* De fem hovedområder er kuraterede landingssider. Blocksys standardtitel,
   kategoribillede og efterfølgende WooCommerce-gitter skjules, så den nye
   nordiske kategoribeskrivelse står som sidens eneste indholdslag. */
body:is(
  .term-folie-til-vinduer,
  .term-folie-til-bil,
  .term-folier-til-interioer,
  .term-grafisk-design,
  .term-vaerktoej-og-tilbehoer
) .hero-section {
  display: block;
  padding: 0;
  background: transparent;
}

body:is(
  .term-folie-til-vinduer,
  .term-folie-til-bil,
  .term-folier-til-interioer,
  .term-grafisk-design,
  .term-vaerktoej-og-tilbehoer
) .hero-section > figure,
body:is(
  .term-folie-til-vinduer,
  .term-folie-til-bil,
  .term-folier-til-interioer,
  .term-grafisk-design,
  .term-vaerktoej-og-tilbehoer
) .hero-section .page-title {
  display: none;
}

body:is(
  .term-folie-til-vinduer,
  .term-folie-til-bil,
  .term-folier-til-interioer,
  .term-grafisk-design,
  .term-vaerktoej-og-tilbehoer
) .hero-section .entry-header {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body:is(
  .term-folie-til-vinduer,
  .term-folie-til-bil,
  .term-folier-til-interioer,
  .term-grafisk-design,
  .term-vaerktoej-og-tilbehoer
) .hero-section .page-description {
  display: block !important;
  width: 100%;
  max-width: none;
  margin: 0;
}

body:is(
  .term-folie-til-vinduer,
  .term-folie-til-bil,
  .term-folier-til-interioer,
  .term-grafisk-design,
  .term-vaerktoej-og-tilbehoer
) main.site-main > .ct-container {
  display: none;
}

/* Interiørsiden fører direkte fra inspiration til konkrete varer. */
.fh-shop-products {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  color: var(--fh-ink);
  background: #fff;
}

.fh-shop-products__intro {
  max-width: 720px;
  margin-bottom: 3rem;
}

.fh-shop-products__eyebrow {
  margin: 0 0 .75rem;
  color: var(--fh-red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fh-shop-products h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  letter-spacing: -.04em;
}

.fh-product-group {
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--fh-line);
}

.fh-special-categories {
  margin: 0 0 clamp(4rem, 8vw, 6rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  background: #eef2f4;
  border-radius: 14px;
}

.fh-special-categories > header {
  max-width: 760px;
  margin-bottom: 2rem;
}

.fh-special-categories h3 {
  margin: 0 0 .75rem;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.fh-special-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.fh-special-category {
  display: flex;
  min-height: 220px;
  padding: 1.5rem;
  flex-direction: column;
  color: var(--fh-ink);
  background: #fff;
  border: 1px solid #e1e5e7;
  border-radius: 10px;
  text-decoration: none;
}

.fh-special-category h4 {
  margin: 0 0 .75rem;
  font-size: 1.25rem;
}

.fh-special-category p {
  margin: 0 0 1.5rem;
  color: #5f6875;
}

.fh-special-category span {
  margin-top: auto;
  font-weight: 800;
}

/* Smart display forklares som en enkel kunderejse uden at blande de
   forskellige teknologier sammen som ét produkt. */
.fh-smart-display {
  margin: 0 0 clamp(4rem, 8vw, 6rem);
  padding: clamp(2rem, 5vw, 3.75rem);
  color: #fff;
  background: var(--fh-ink);
  border-radius: 14px;
}

.fh-smart-display__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: 2rem;
}

.fh-smart-display__intro .fh-shop-products__eyebrow {
  grid-column: 1 / -1;
  color: #ff746e;
}

.fh-smart-display__intro h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -.035em;
}

.fh-smart-display__intro > p:last-child {
  margin: 0;
  color: #d7dde4;
}

.fh-smart-display__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 10px;
}

.fh-smart-display__step {
  min-height: 250px;
  padding: 1.5rem;
  background: #26364b;
}

.fh-smart-display__step > span {
  display: block;
  margin-bottom: 2rem;
  color: #ff746e;
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.fh-smart-display__step h4 {
  margin: 0 0 .75rem;
  color: #fff;
  font-size: 1.2rem;
}

.fh-smart-display__step p {
  margin: 0;
  color: #d7dde4;
  font-size: .94rem;
  line-height: 1.65;
}

.fh-smart-display__cta {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1px;
  padding: 1.5rem;
  background: var(--fh-green);
  border-radius: 10px;
}

.fh-smart-display__cta strong {
  display: block;
  margin-bottom: .35rem;
  font-size: 1.05rem;
}

.fh-smart-display__cta p {
  margin: 0;
  color: #e4eee9;
}

.fh-smart-display__cta a {
  flex: 0 0 auto;
  color: #fff;
  font-weight: 800;
  text-decoration-color: #fff;
  text-underline-offset: .25em;
}

@media (max-width: 900px) {
  .fh-special-categories__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fh-smart-display__intro {
    grid-template-columns: 1fr;
  }

  .fh-smart-display__intro .fh-shop-products__eyebrow {
    grid-column: auto;
  }

  .fh-smart-display__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .fh-special-categories__grid {
    grid-template-columns: 1fr;
  }

  .fh-smart-display__steps {
    grid-template-columns: 1fr;
  }

  .fh-smart-display__step {
    min-height: 0;
  }

  .fh-smart-display__cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.fh-product-group > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2rem;
}

.fh-product-group h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.fh-product-group > header p {
  margin: 0;
  color: #5f6875;
}

.fh-product-group ul.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
}

.fh-product-group ul.products::before,
.fh-product-group ul.products::after { display: none; }

.fh-product-group ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 1.25rem;
  overflow: hidden;
  background: var(--fh-paper);
  border-radius: 10px;
}

.fh-product-group ul.products li.product img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.fh-product-group ul.products li.product .woocommerce-loop-product__title,
.fh-product-group ul.products li.product .price,
.fh-product-group ul.products li.product .button {
  margin-right: 1.25rem;
  margin-left: 1.25rem;
}

/* Blocksy og WooCommerce kan begge udskrive loop-knappen. Behold kun
   Blocksys handlingsfelt, så kortet ikke får en dublet eller gentaget
   hjælpetekst for skærmlæsere. */
.fh-product-group ul.products li.product > .button,
.fh-product-group ul.products li.product > .screen-reader-text {
  display: none !important;
}

/* Sidekurvens tilfældige anbefalinger bruger gamle WooCommerce-priser og
   kan derfor modsige beregneren. De skjules, indtil alle anbefalinger er
   koblet til samme prismodel. Selve kurven og checkout påvirkes ikke. */
.xoo-wsc-rp-cont {
  display: none !important;
}

.fh-dual-price {
  display: grid;
  gap: .2rem;
}

.fh-dual-price strong {
  color: var(--fh-ink);
  font-size: 1rem;
  font-weight: 750;
}

.fh-dual-price small {
  color: #68717d;
  font-size: .78rem;
  font-weight: 600;
}

.fh-dual-price em {
  color: #7b838d;
  font-size: .7rem;
  font-style: normal;
  font-weight: 500;
  line-height: 1.35;
}

/* Produktsiderne følger samme rolige nordiske designsprog som landingssiderne. */
body.single-product {
  color: var(--fh-ink);
  background: #f3f5f7;
}

body.single-product .site-main {
  padding-block: clamp(2rem, 5vw, 5rem);
}

body.single-product div.product {
  gap: clamp(2rem, 5vw, 4.5rem);
}

body.single-product .woocommerce-product-gallery,
body.single-product div.product .summary {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7e8e9;
  border-radius: 14px;
  box-shadow: 0 14px 45px rgba(29, 42, 61, .06);
}

body.single-product div.product .summary {
  align-self: start;
  padding: clamp(1.5rem, 4vw, 3rem);
}

body.single-product .product_title {
  color: var(--fh-ink);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -.04em;
}

body.single-product .woocommerce-breadcrumb {
  color: #66707d;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

body.single-product input,
body.single-product select,
body.single-product textarea {
  border-color: var(--fh-line);
  border-radius: 8px;
}

body.single-product .single_add_to_cart_button {
  min-height: 52px;
  background: var(--fh-red);
  border-radius: 8px;
}

body.single-product .related.products > h2,
body.single-product .up-sells > h2 {
  color: var(--fh-ink);
  letter-spacing: -.03em;
}

.fh-product-group .fh-price-from {
  font-weight: 750;
}

.fh-product-group__empty {
  padding: 1.25rem;
  color: #5f6875;
  background: var(--fh-paper);
  border-radius: 10px;
}

.fh-product-group ul.products li.product .woocommerce-loop-product__title {
  min-height: 2.8em;
  font-size: 1.05rem;
  line-height: 1.35;
}

.fh-product-group ul.products li.product .button {
  color: var(--fh-ink);
  background: transparent;
  border-bottom: 2px solid var(--fh-red);
  border-radius: 0;
}

/* Kategorinavnet er teknisk navigation og skal ikke konkurrere med det
   konkrete produktnavn på de kuraterede købskort. */
.fh-product-group ul.products li.product .product-categories,
.fh-product-group ul.products li.product .ct-woo-card-extra,
.fh-product-group ul.products li.product .entry-meta,
.fh-product-group ul.products li.product .meta-categories,
.fh-product-group ul.products li.product > ul {
  display: none;
}

@media (max-width: 900px) {
  .fh-product-group > header { grid-template-columns: 1fr; gap: .75rem; }
  .fh-product-group ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .fh-product-group ul.products { grid-template-columns: 1fr; }
}

