/* Produktsida /produkt/<EAN>/ – designförslag 2026-11-22.
   Laddas bara av produkt.php (head.php: $include_produkt_css). Färger som i
   style260808_v02.css: knappar #1462b8 (hover #0d4a8f), pris #2a7a3a. */

#skyltfonster .produktdetail-brand { color: #595959; }          /* var #888 (3,5:1) → 7:1 */

/* 1. Bild, stor och centrerad. Rutan har fast storlek → ingen CLS när bilden laddas. */
.pd-topp {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 0 28px;
}
.pd-bild { width: 100%; max-width: 520px; }
.pd-snurra {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: min(520px, 62vh);
    margin: 0 auto;
}
@media (min-width: 700px) {
    /* Bredare, lägre ruta: skorna är oftast liggande bilder, och priset ska synas utan rullning vid 1280 × 800 */
    .pd-bild { max-width: 600px; }
    .pd-snurra { aspect-ratio: 4 / 3; max-height: min(440px, 40vh); }
    #skyltfonster .produktdetail-wrap .produktdetail-brand { margin-bottom: 4px; }
}
.pd-snurra img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none;
}
.pd-snurra img.active { display: block; }
.pd-pil {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-pil:hover { background: rgba(0, 0, 0, .7); }
.pd-pil:focus-visible, .pd-prick:focus-visible { outline: 3px solid #1462b8; outline-offset: 2px; }
.pd-pil-prev { left: 4px; }
.pd-pil-next { right: 4px; }
.pd-prickar { display: flex; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.pd-prick, .pd-prick.bildsnurra-prick.active {                              /* tryckyta 44 × 44, synlig prick 10 px */
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-prick::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #bbb; }
.pd-prick.bildsnurra-prick.active::before { background: #333; }

/* 2. Lägsta pris rakt under bilden */
.pd-pris { text-align: center; margin-top: 10px; }
#skyltfonster .pd-pris p { margin: 0; font-size: 1.05rem; }
#skyltfonster .pd-pris .pd-pris-etikett { color: #444; font-weight: 400; }
#skyltfonster .pd-pris .pd-pris-belopp {
    font-family: 'Oswald', Verdana, sans-serif;
    font-size: 2.4rem;
    line-height: 1.15;
    font-weight: 500;
    color: #2a7a3a;
}
#skyltfonster .pd-pris .pd-pris-butik { color: #444; }
.pd-pris-ord { color: #595959; text-decoration: line-through; white-space: nowrap; }
#skyltfonster .pd-pris .pd-hopp { margin-top: 6px; }
#skyltfonster .pd-pris .pd-hopp a,
#skyltfonster .pd-pris .pd-hopp a:link,
#skyltfonster .pd-pris .pd-hopp a:visited {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 6px;
    color: #1462b8 !important;
    font-weight: 600;
}

/* 3. Butikslistan: staplad på mobil, två per rad från 700 px */
.pd-jamfor { margin: 0 0 32px; }
#skyltfonster .pd-jamfor h2 { font-size: 1.35rem; margin: 0 0 16px; text-align: center; }
.pd-butiker {
    list-style: none;
    margin: 0 auto 8px;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-width: 1000px;
}
@media (min-width: 700px) {
    .pd-butiker { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .pd-butiker > li:only-child { grid-column: 1 / -1; justify-self: center; width: 100%; max-width: 492px; }
}
.pd-butik { margin: 0; min-width: 0; }
.pd-butik > a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "logo  pris"
        "namn  pris"
        "knapp knapp";
    align-items: center;
    gap: 6px 12px;
    height: 100%;
    box-sizing: border-box;
    padding: 14px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    background: #fff;
    color: #222;
    text-decoration: none;
    position: relative;
}
.pd-butik > a:hover { border-color: #1462b8; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.pd-butik > a:focus-visible { outline: 3px solid #1462b8; outline-offset: 2px; }
.pd-butik.billigast > a { border: 2px solid #2a7a3a; padding: 13px; }
.pd-lagst {
    position: absolute;
    top: -11px;
    left: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #2a7a3a;
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    line-height: 1.4;
}
.pd-butik-logo { grid-area: logo; display: flex; align-items: center; min-height: 40px; font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.pd-butik-logo img { width: 120px; height: 40px; object-fit: contain; object-position: left center; }
.pd-butik-namn { grid-area: namn; font-size: .9rem; line-height: 1.35; color: #555; overflow-wrap: anywhere; }
.pd-butik-pris { grid-area: pris; text-align: right; white-space: nowrap; align-self: start; }
.pd-butik-pris b { display: block; font-size: 1.35rem; color: #2a7a3a; }
.pd-butik-pris s { display: block; font-size: .85rem; color: #595959; }
.pd-butik-knapp {
    grid-area: knapp;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 6px;
    border-radius: 6px;
    background: #1462b8;
    color: #fff;
    font-weight: 600;
    text-align: center;
    padding: 0 10px;
}
.pd-butik > a:hover .pd-butik-knapp { background: #0d4a8f; }
#skyltfonster .pd-jamfor h2.pd-extra-rubrik { font-size: 1.1rem; margin: 26px 0 10px; }

/* 4. Produkttexten i luftiga stycken (produkttext_html) */
.pd-text { max-width: 70ch; margin: 0 auto 32px; }
#skyltfonster .produkttext p { margin: 0 0 1em; line-height: 1.6; font-size: 1.15rem; }
#skyltfonster .produkttext p.pt-rubrik { margin: 1.4em 0 .35em; font-weight: 400; }
#skyltfonster .produkttext p.pt-rubrik strong { font-weight: 700; }
#skyltfonster .produkttext p.pt-etikett { margin: 1.2em 0 .35em; font-weight: 600; }
.produkttext ul.pt-lista { margin: 0 0 1.1em; padding-left: 1.3em; }
.produkttext ul.pt-lista li { margin: .35em 0; line-height: 1.5; font-size: 1.1rem; font-weight: 300; }
.produkttext > :first-child { margin-top: 0; }

@media (max-width: 599px) {
    #skyltfonster .pd-pris .pd-pris-belopp { font-size: 2.1rem; }
    .pd-butik > a { padding: 12px; }
    .pd-butik.billigast > a { padding: 11px; }
    .pd-text { margin-bottom: 24px; }
}

/* Text som bara skärmläsare läser ("Ordinarie pris") */
.pd-dold { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
