@charset "utf-8";

html, body { height: 100%; margin: 0; padding: 0; overflow-x: hidden; }
#wrap { min-height: 77%; }
#main { overflow: auto; margin-bottom: 10px; clear: both; }

body {
  font-family: 'Roboto Condensed', sans-serif;
  background-color: #fff;
  color: #333;
}
p { font-family: 'Roboto Condensed', sans-serif; font-weight: 300; line-height: 1.4; }

/* ====================== */
/* === HEADER & NAV   === */
/* ====================== */

#site-header {
  background: #fff;
  border-bottom: 3px solid #c0392b;
  position: relative;
  z-index: 200;
}
#header-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
#logo-link { display: block; flex-shrink: 0; }
#site-logo { height: 80px; width: auto; display: block; }

/* Hamburger — hidden on desktop */
#hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 6px;
  flex-shrink: 0;
}
#hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: background 0.15s;
}
#hamburger:hover span { background: #c0392b; }

/* Desktop nav */
#desktop-nav { margin-left: auto; }
#desktop-nav > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}
.nav-item { position: static; }
.nav-trigger {
  background: none;
  border: none;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  padding: 9px 13px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-trigger:hover,
.nav-item.open .nav-trigger {
  background: #c0392b;
  color: #fff;
}
.nav-caret {
  font-size: 0.6rem;
  transition: transform 0.2s;
}
.nav-item.open .nav-caret { transform: rotate(180deg); }

/* Mega panel */
.mega-panel {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 3px solid #c0392b;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 20px 20px 24px;
  z-index: 300;
}
.nav-item.open .mega-panel { display: block; }
.mega-panel > ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1250px;
  columns: 3;
  column-gap: 16px;
}
.mega-panel > ul li {
  break-inside: avoid;
  margin-bottom: 1px;
}
.mega-panel > ul li a {
  display: block;
  padding: 6px 10px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
  transition: background 0.12s, color 0.12s;
}
.mega-panel > ul li a:hover {
  background: #fde8e6;
  color: #c0392b;
}

/* Mobile overlay */
#mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 400;
}
#mobile-overlay.open { display: block; }

/* Mobile drawer */
#mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #fff;
  z-index: 500;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.27s cubic-bezier(0.4,0,0.2,1);
}
#mobile-nav.open { transform: translateX(0); }

#mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #c0392b;
  color: #fff;
  padding: 14px 16px;
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#mobile-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}

.mob-group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  border-bottom: 1px solid #eee;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  text-align: left;
}
.mob-group-title:hover { background: #fafafa; }
.mob-arrow {
  font-size: 0.6rem;
  color: #aaa;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.mob-group.open .mob-arrow { transform: rotate(180deg); }

.mob-group-list {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fafafa;
}
.mob-group.open .mob-group-list { display: block; }
.mob-group-list li a {
  display: block;
  padding: 10px 16px 10px 28px;
  color: #444;
  text-decoration: none;
  font-size: 0.88rem;
  border-bottom: 1px solid #f0f0f0;
}
.mob-group-list li a:hover { color: #c0392b; background: #fde8e6; }

/* Mobile: sticky header, hide desktop nav, show hamburger */
@media (max-width: 800px) {
  #site-header { position: sticky; top: 0; }
  #site-logo { height: 48px; }
  #hamburger { display: flex; }
  #desktop-nav { display: none; }
  #header-inner {
    padding: 10px 12px;
    gap: 0;
    justify-content: center;
    position: relative;
  }
  #logo-link { margin: 0 auto; }
  #hamburger { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); }
}

#content { background: #fff; display: block; min-height: 500px; width: 100%; }

#skyltfonster {
  max-width: 1250px;
  min-height: 460px;
  margin: 0 auto;
  padding: 10px 15px 25px;
}
#skyltfonster h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 38px;
  color: #333;
  line-height: 1.15;
  margin: 15px 0 20px;
  text-transform: uppercase;
}
#skyltfonster h2 { font-family: 'Roboto Condensed', sans-serif; font-weight: 600; }

#footer {
  background-color: #1a1a1a;
  color: #ccc;
  clear: both;
}
.footer-inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 40px 20px 28px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 380px; }
.footer-logo {
  height: 52px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: 14px;
  opacity: 0.9;
}
.footer-tagline {
  font-size: 0.9rem;
  color: #aaa;
  line-height: 1.55;
  margin: 0;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}
.footer-nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid #2e2e2e;
  text-align: center;
  padding: 14px 20px;
  font-size: 0.78rem;
  color: #666;
}
@media (max-width: 600px) {
  .footer-inner { flex-direction: column; gap: 24px; padding: 28px 16px 20px; }
  .footer-logo { height: 40px; }
}

/* ====================== */
/* === PRODUKTGRID     === */
/* ====================== */

.price-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px 0;
  align-items: center;
}
.price-filter span { font-weight: 600; margin-right: 5px; font-size: 0.95rem; }
.price-filter button {
  background: #f0f0f0;
  border: 2px solid #ddd;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: 'Roboto Condensed', sans-serif;
  transition: all 0.2s;
}
.price-filter button:hover,
.price-filter button.active {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.productfeed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  padding: 10px 0;
  margin-bottom: 30px;
}
.productfeed ul { all: unset; display: contents; }

.productfeed li {
  list-style: none;
  border-radius: 8px;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.08);
  padding: 15px 12px 52px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
  border: 2px solid #e8e8e8;
  max-width: 300px;
  width: 100%;
  justify-self: center;
  box-sizing: border-box;
}
.productfeed li:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  transform: translateY(-2px);
  border-color: #c0392b;
}
.productfeed li.hidden { display: none; }

@media (max-width: 599px) {
  .productfeed { grid-template-columns: 1fr 1fr; }
  .productfeed li { max-width: none; width: 100%; justify-self: stretch; }
}

.productfeed .productname {
  color: #000;
  width: 100%;
  text-align: center;
  padding: 5px;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.productfeed .productname h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  text-align: center;
  line-height: 1.2;
}

.productimage {
  width: 100%;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 8px 0;
}
.productimage img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.productfeed .pricelink {
  width: 100%;
  text-align: center;
  font-size: 15px;
  color: #000;
  border-top: 1px solid #ddd;
  margin-bottom: 8px;
  padding: 5px 0 0;
  font-weight: bold;
  white-space: nowrap;
}

.productfeed .readmore-button {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #c0392b;
  color: #fff !important;
  font-size: 13px;
  font-weight: bold;
  text-align: center;
  text-decoration: none !important;
  border-radius: 6px;
  padding: 8px 18px;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: background 0.2s;
  z-index: 2;
}
.productfeed .readmore-button:hover { background-color: #e67e22; }

.productfeed .product-readmore {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  color: #bbb;
  text-decoration: none;
  margin-top: 5px;
}
.productfeed .product-readmore:hover { color: #888; }

.productfeed .infobox {
  font-size: 12px;
  line-height: 1.3;
  color: #555;
  text-align: left;
  max-height: 55px;
  overflow: hidden;
  width: 100%;
  word-break: break-word;
}

/* No products msg */
.no-products {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-size: 1.1rem;
}

/* ====================== */
/* === PRODUKTSIDA     === */
/* ====================== */
.product-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
.product-page .product-img {
  max-width: 380px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}
.product-page h1 { font-family: 'Oswald', sans-serif; font-size: 30px; margin-bottom: 10px; }
.product-page .product-price { font-size: 1.6rem; font-weight: bold; color: #c0392b; margin: 10px 0; }
.product-page .buy-button {
  display: inline-block;
  background: #c0392b;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  margin: 15px 0;
  transition: background 0.2s;
}
.product-page .buy-button:hover { background: #e67e22; }
.product-page .description { margin-top: 20px; font-size: 1rem; line-height: 1.6; }
.seo-note { font-size: 0.8rem; color: #aaa; margin-top: 5px; font-style: italic; }

/* ====================== */
/* === FRONTPAGE       === */
/* ====================== */
.front-section { max-width: 1250px; margin: 0 auto; padding: 15px; }
.front-section h2 { font-family: 'Oswald', sans-serif; font-size: 26px; color: #333; text-transform: uppercase; margin: 25px 0 10px; border-left: 5px solid #c0392b; padding-left: 12px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 30px;
}
.category-grid a {
  display: block;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 14px 12px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  transition: all 0.2s;
}
.category-grid a:hover { background: #c0392b; color: #fff; border-color: #c0392b; }

/* ====================== */
/* === SIDINNEHÅLL     === */
/* ====================== */

.page-ingress {
  margin: 0 0 20px 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
  max-width: 800px;
}
.page-ingress p { margin: 0 0 10px; }
.page-ingress a { color: #c0392b; }

.page-body {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #eee;
  max-width: 800px;
  font-size: 1rem;
  line-height: 1.65;
  color: #333;
}
.page-body h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.4rem;
  color: #333;
  text-transform: uppercase;
  margin: 28px 0 10px;
  border-left: 4px solid #c0392b;
  padding-left: 10px;
}
.page-body h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  margin: 20px 0 8px;
}
.page-body p { margin: 0 0 12px; }
.page-body a { color: #c0392b; }
.page-body img { max-width: 100%; height: auto; display: block; }
.page-body ul, .page-body ol { padding-left: 1.4em; margin-bottom: 12px; }

/* Breadcrumb */
.breadcrumb { font-size: 12px; color: #888; margin-bottom: 10px; }
.breadcrumb a { color: #c0392b; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ====================== */
/* === FEATURED CARDS  === */
/* ====================== */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 35px;
}
.featured-card {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 3/2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}
.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.featured-card:hover img { transform: scale(1.04); }
.featured-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ====================== */
/* === EDITORIAL       === */
/* ====================== */

.front-editorial { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px; }

.editorial-hero {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
}
.editorial-hero img {
  width: 100%;
  height: auto;
  display: block;
}
.front-editorial > .editorial-hero:not(.editorial-hero--square) { flex: 0 0 100%; }
.editorial-hero--square { flex: 1 1 calc(50% - 10px); max-width: none; }

/* Hero: fixed height so image doesn't dominate the screen */
.front-hero { height: 440px; margin-bottom: 4px; }
.front-hero img { height: 100%; object-fit: cover; object-position: center; }

.editorial-hero__text {
  position: absolute;
  padding: 28px 32px;
  max-width: 42%;
}
.editorial-hero__text--left  { left: 0; top: 50%; transform: translateY(-50%); }
.editorial-hero__text--right { right: 0; top: 50%; transform: translateY(-50%); max-width: 52%; }
.editorial-hero__text--bottom {
  bottom: 0; left: 0; right: 0;
  max-width: 100%;
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(2px);
}

.editorial-hero__text h1 {
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 1.75rem;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 14px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  border-left: none !important;
  padding-left: 0 !important;
}
.editorial-hero__text h2 {
  color: #fff;
  border-left: none !important;
  padding-left: 0 !important;
  margin: 0 0 10px;
  font-size: 1.35rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.editorial-hero__text p {
  color: rgba(255,255,255,0.92);
  margin: 0 0 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  text-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.editorial-hero__text p:last-child { margin-bottom: 0; }

/* Semi-transparent dark overlay for light image areas (brown/beige) */
.editorial-hero__text--dark {
  background: rgba(30,14,0,0.48);
  backdrop-filter: blur(2px);
}

.lw-caps { text-transform: uppercase; }

/* --- Mobile --- */
@media (max-width: 700px) {
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .front-editorial { flex-direction: column; }
  .editorial-hero--square { flex-basis: auto; }

  /* Hero on mobile: short image + text block beneath */
  .front-hero { height: auto; }
  .front-hero img { height: 200px; object-fit: cover; object-position: right center; }
  .front-hero .editorial-hero__text {
    position: static;
    transform: none;
    max-width: 100%;
    background: #111;
    padding: 18px 16px;
    border-radius: 0 0 10px 10px;
  }

  /* Other editorial heroes: tighten text overlay */
  .editorial-hero__text { padding: 14px 16px; }
  .editorial-hero__text h2 { font-size: 0.95rem; }
  .editorial-hero__text p  { font-size: 0.78rem; }
}
@media (max-width: 600px) {
  #skyltfonster h1 { font-size: 1.4rem; }
  .site-title { font-size: 34px; }
  body { padding-top: 0; }
  .featured-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
