/* Tillägg för jämförelsesidorna. Allt annat kommer från Shopellos egen stilmall (shopello.css). */

.sj-smulor { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.sj-ingress { max-width: 46rem; line-height: 1.6; }

.sj-butiksnamn { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; margin-bottom: .125rem; }
.sj-pris { display: flex; flex-direction: column; align-items: flex-end; flex-shrink: 0; text-align: right; line-height: 1.2; }
.sj-ord { text-decoration: line-through; }
/* Butiksrader: namn + villkor | pris | knapp på en rad; på mobil hamnar knappen under. */
.sj-erbjudanden { border: 1px solid #e5e7eb; border-radius: .5rem; overflow: hidden; }
.sj-erb { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .25rem 1rem; padding: .625rem .875rem; background: #fff; }
.sj-erb + .sj-erb { border-top: 1px solid #e5e7eb; }
.sj-erb-butik { min-width: 0; }
.sj-knapp { height: 2.25rem; padding: 0 .875rem; }
.sj-fler > summary { list-style: none; cursor: pointer; width: 100%; height: 2.5rem; }
.sj-fler > summary::-webkit-details-marker { display: none; }
.sj-fler[open] > summary { display: none; }
@media (max-width: 479px) {
  .sj-erb { gap: .25rem .625rem; padding: .625rem .75rem; }
  .sj-knapp { padding: 0 .625rem; }
  .sj-knapp svg { display: none; }
}
/* Mobil: mindre bild så att butikslistan syns tidigare. */
@media (max-width: 1023px) {
  .sj-produktbild { aspect-ratio: auto; height: 240px; }
}
.sj-lagst { background: #f9fafb; box-shadow: inset 3px 0 0 var(--primary); }
.sj-marke {
  display: inline-block; padding: .125rem .5rem; border-radius: 9999px;
  background: var(--primary); color: var(--primary-foreground);
  font-size: .75rem; font-weight: 500; line-height: 1.25rem; vertical-align: middle;
}

[data-sj-mobilmeny][hidden] { display: none; }

/* Sidhuvudet: "Jämför priser" med kategoripanel (dator) och kategorilista (mobilmeny). */
.sj-jmeny { position: relative; }
.sj-jpanel { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: .5rem; z-index: 60; }
.sj-jmeny:hover > .sj-jpanel, .sj-jmeny:focus-within > .sj-jpanel { display: block; }
.sj-jmeny:hover > a svg, .sj-jmeny:focus-within > a svg { transform: rotate(180deg); }
.sj-jpanel-inre { width: min(42rem, 90vw); padding: 1rem 1.25rem; background: #fff; border: 1px solid #e5e7eb; border-radius: .5rem; box-shadow: 0 10px 25px -5px rgba(0,0,0,.12); }
.sj-jpanel-rubrik { margin: 0 0 .5rem; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: #6b7280; }
.sj-jpanel ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .125rem 1rem; list-style: none; margin: 0; padding: 0; }
.sj-jpanel ul a, .sj-jmobil a { display: flex; justify-content: space-between; gap: .5rem; padding: .375rem .5rem; border-radius: .375rem; font-size: .875rem; color: #111827; }
.sj-jpanel ul a:hover, .sj-jmobil a:hover { background: #f3f4f6; }
.sj-jpanel ul a span, .sj-jmobil a span { color: #9ca3af; font-size: .75rem; }
.sj-jpanel-alla { display: inline-block; margin-top: .75rem; font-size: .875rem; font-weight: 500; text-decoration: underline; color: #111827; }
.sj-jmobil { list-style: none; margin: .25rem 0 0 .75rem; padding: 0 0 0 .5rem; border-left: 1px solid #e5e7eb; }
.sj-kategorirubrik { font-size: 1.5rem; line-height: 2rem; font-weight: 700; color: #111827; margin-top: 2.5rem; scroll-margin-top: 5rem; }

/* Sidväljare på kategorisidorna. */
.sj-sidor { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem; margin-top: 1.5rem; }
.sj-sidor a, .sj-sidor span { display: inline-flex; align-items: center; justify-content: center; min-width: 2.25rem; height: 2.25rem; padding: 0 .75rem; border: 1px solid #e5e7eb; border-radius: .375rem; font-size: .875rem; color: #111827; background: #fff; }
.sj-sidor a:hover { border-color: var(--primary); }
.sj-sidor [aria-current] { background: var(--primary); color: var(--primary-foreground); border-color: var(--primary); }
.sj-sidor .sj-sidor-glapp { border: 0; background: none; min-width: 1rem; padding: 0; }

/* Kategoritexter och guider. */
.sj-kopguide { max-width: 46rem; margin-top: 3rem; }
.sj-kopguide h2, .sj-guide h2 { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: #111827; margin: 2rem 0 .5rem; }
.sj-kopguide p, .sj-guide p, .sj-guide li { color: #374151; line-height: 1.7; margin: 0 0 .875rem; }
.sj-guide { max-width: 46rem; }
.sj-guide ul, .sj-guide ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.sj-guide ul { list-style: disc; } .sj-guide ol { list-style: decimal; }
.sj-guide a, .sj-kopguide a { color: #111827; text-decoration: underline; }
.sj-guidelista { max-width: 46rem; margin-top: 2.5rem; }
.sj-guidelista h2 { font-size: 1.25rem; font-weight: 700; color: #111827; margin-bottom: .75rem; }
.sj-guidelista ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.sj-guidelista a { font-weight: 600; color: #111827; text-decoration: underline; }
.sj-guidelista span { display: block; font-size: .875rem; color: #6b7280; margin-top: .125rem; }

/* Produktkarusell i guiderna: vågrät rullning, snäpper per kort. */
.sj-karusell { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(10.5rem, 12rem); gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: .25rem .125rem 1rem; margin: 1rem 0 .25rem; }
.sj-kort { scroll-snap-align: start; display: flex; flex-direction: column; gap: .25rem; padding: .75rem; background: #fff; border: 1px solid #e5e7eb; border-radius: .5rem; text-decoration: none !important; color: #111827; }
.sj-kort:hover { border-color: var(--primary); }
.sj-kort-bild { display: block; aspect-ratio: 1; }
.sj-kort-bild img { width: 100%; height: 100%; object-fit: contain; }
.sj-kort-namn { font-size: .875rem; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sj-kort-pris { font-weight: 700; }
.sj-kort-butiker { font-size: .75rem; color: #6b7280; }
.sj-karusell-alla { display: inline-block; font-size: .875rem; font-weight: 500; margin-bottom: 1rem; }
.sj-guide-bild { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .75rem; margin: 1.25rem 0 1.5rem; }
/* Shopellos egna menyer: två spalter, smalare panel, vänsterjusterad under menyvalet. */
.sj-jpanel--shopello { left: 0; transform: none; }
.sj-jpanel--shopello .sj-jpanel-inre { width: min(30rem, 90vw); }
.sj-jpanel--shopello ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Guider i menyn och som kort på startsidan. */
.sj-jpanel-guider { margin-top: 1rem; }
.sj-jpanel ul.sj-jguider, .sj-jmenu ul.sj-jguider { grid-template-columns: 1fr; }
.sj-jguider { list-style: none; margin: .25rem 0 0; padding: 0; }
.sj-jguider a { display: block; padding: .375rem .5rem; border-radius: .375rem; font-size: .875rem; font-weight: 500; color: #111827; }
.sj-jguider a:hover { background: #f3f4f6; }
.sj-ingress + .sj-guidelista { margin-top: 1.5rem; }
.sj-ingress + .sj-guidelista ul { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.sj-ingress + .sj-guidelista li { padding: .875rem 1rem; border: 1px solid #e5e7eb; border-radius: .5rem; background: #fff; }
.sj-guide h3 { font-size: 1rem; font-weight: 600; color: #111827; margin: 1.25rem 0 .25rem; }
