/* =================================================== 
   CUSTOM CSS CODE BELOW
   =================================================== */

/* Desktop: skarpare sökfält (ram + text) */
@media (min-width: 1024px) {

  /* Själva inputen */
  header :is(
    input[type="search"],
    input[type="text"][name="q"],
    input.search-field,
    form[action*="search"] input
  ) {
    background: #fff !important;
    color: #111 !important;
    font-weight: 500 !important;
    border: 2px solid #1f2937 !important;
    border-radius: 12px !important;
    padding: 12px 44px 12px 14px !important;
    box-shadow: none !important;
  }

  /* Placeholder */
  header :is(
    input[type="search"],
    input[type="text"][name="q"],
    input.search-field,
    form[action*="search"] input
  )::placeholder {
    color: #4b5563 !important;
    opacity: 1 !important;
  }

  /* Svenska placeholder */
  input[placeholder*="Sök" i]::placeholder { 
    color: #4b5563 !important;
    opacity: 1 !important;
  }

  /* Förstoringsglas */
  header :is(.search svg, .search .icon, form[action*="search"] svg) {
    color: #111 !important;
    fill: currentColor !important;
    opacity: 1 !important;
  }

  /* Hover */
  header :is(
    input[type="search"],
    input[type="text"][name="q"],
    input.search-field,
    form[action*="search"] input
  ):hover {
    border-color: #111 !important;
  }

  /* Focus */
  header :is(
    input[type="search"],
    input[type="text"][name="q"],
    input.search-field,
    form[action*="search"] input
  ):focus {
    outline: 1px solid #ff6a00 !important;
    outline-offset: 1px !important;
    border-color: #ff6a00 !important;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.18) !important;
  }

} /* ← properly closes desktop @media */

/* ===================================================
   CATEGORY HERO (SG-CAT-HERO)
   =================================================== */

body .sg-cat-hero {
  position: relative !important;
  display: flex !important;
  align-items: flex-end !important;
  min-height: 380px;
  padding: clamp(16px, 3vw, 32px);
  border-radius: 12px;
  overflow: hidden;
}

body .sg-cat-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover !important;
  background-position: center !important;
  will-change: transform;
}

body .sg-cat-hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.3);
}

body .sg-cat-hero__content h1 {
  margin: 0 0 .25rem 0;
  font-size: clamp(24px, 4vw, 44px);
  line-height: 1.1;
}

body .sg-cat-hero__content p {
  margin: 0;
  font-size: clamp(14px, 1.6vw, 18px);
  opacity: .95;
}

/* Taller on desktop */
@media (min-width: 992px){
  body .sg-cat-hero { min-height: 440px; }
}

/* Full-bleed layout */
.section .sg-cat-hero,
.container .sg-cat-hero {
  margin-left: max(-24px, -3vw);
  margin-right: max(-24px, -3vw);
  border-radius: 0;
}

/* CTA Button */
.sg-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(2px);
}
.sg-btn:hover {
  background: rgba(255,255,255,.2);
}

/* ===================================================
   MOBILE FIX FOR .HERO (YOUR BANNER)
   =================================================== */

@media (max-width: 767px) {
  .hero {
    min-height: 140px !important;
    background-position: center 30% !important;
    background-size: cover !important;
  }
}
.sg-cat-hero {
  position: relative;
  width: 100%;
  min-height: clamp(260px, 40vw, 420px);

  /* Bilden – använder din CSS-variabel */
  background-image: var(--hero);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  color: #ffffff; /* vit text över bilden */
}

.sg-cat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* mörk overlay så texten syns tydligt */
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.35) 40%,
    rgba(0, 0, 0, 0) 75%
  );
}

.sg-cat-hero__content {
  position: relative;
  padding: 3rem 4vw;
  max-width: 640px;
}

.sg-cat-hero__content h1 {
  margin: 0 0 0.75rem;
}

.sg-cat-hero__content p {
  margin: 0 0 0.5rem;
}
/* ==========================
   Black Friday countdown bar
   ========================== */

.bf-bar {
  background-color: #E02424; /* Red */
  color: #000;
  font-size: 14px;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.bf-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  text-align: center;
  flex-wrap: nowrap;
}

/* Text block */
.bf-bar-text {
  white-space: nowrap;
}

.bf-bar-text strong {
  font-size: 18px;
  margin-right: 6px;
}

.bf-bar-text span {
  font-size: 14px;
  font-weight: 400;
}

/* Countdown */
.bf-bar-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.bf-bar-label {
  font-weight: 600;
  font-size: 13px;
}

.bf-timer {
  display: flex;
  gap: 8px;
}

.bf-timer div {
  text-align: center;
  min-width: 36px;
  line-height: 1.1;
}

.bf-timer span {
  font-size: 15px;
  font-weight: 700;
}

.bf-timer small {
  font-size: 10px;
  display: block;
}

/* Button */
.bf-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #000;
  border: 2px solid #000;
  color: #fff;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.bf-bar-btn:hover {
  background-color: #222;
  border-color: #222;
}

/* Mobile – compact stack */
@media (max-width: 767px) {
  .bf-bar-inner {
    flex-direction: column;
    gap: 4px;
    padding: 6px 10px;
  }

  .bf-bar-text strong {
    font-size: 16px;
  }

  .bf-bar-text span {
    font-size: 13px;
  }

  .bf-timer span {
    font-size: 14px;
  }

  .bf-timer small {
    font-size: 9px;
  }

  .bf-bar-btn {
    padding: 6px 14px;
    font-size: 13px;
  }
}
/* Fördelar / service-rad – kompakt layout på mobil */
@media (max-width: 767px) {

  /* allow wrapping of text so columns can be narrow */
  .service-column.text-nowrap {
    white-space: normal !important;
  }

  /* make each item a column instead of full width */
  .service-column.col {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0.5rem !important;
  }

  /* slightly tighter typography */
  .service-column strong {
    font-size: 13px;
    display: block;
  }

  .service-column span,
  .service-column small {
    font-size: 11px;
    line-height: 1.2;
  }

  .service-column svg,
  .service-column img {
    margin-bottom: 4px;
  }
}