html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    min-height: 100vh;
    background-color: rgb(218, 167, 134);
    background-image: url("Bilder/Mönster4.png");
    background-repeat: repeat;
    font-family: "Creato";
}

@font-face {
    font-family: "Butler";
    src: url("Font/Butler-Free-Med.otf");
}

@font-face {
    font-family: "Kenyan";
    src: url("Font/Kenyan Coffee Bd.otf");
}

@font-face {
    font-family: "Bank";
    src: url("Font/F25_Bank_Printer.otf");
}

@font-face {
    font-family: "Scaver";
    src: url("Scaver.ttf");
}

@font-face {
    font-family: "Modern";
    src: url("Font/Modern Romance.otf");
}

@font-face {
    font-family: "Creato";
    src: url("Font/CreatoDisplay-Light.otf");
}

/* TILLBAKA */

.TillbakaKnapp {
    display: block;
    margin: 2vw 0 0 9.5vw;
    padding: 0.7vw 1.2vw;
    border: 1px solid white;
    background-color: transparent;
    color: white;
    font-family: "Kenyan";
    font-size: 1vw;
    letter-spacing: 0.1vw;
    cursor: pointer;
    transition: 0.2s;
}

.TillbakaKnapp:hover {
    background-color: #28190f;
    color: white;
}

/* PRODUKTSIDA */

.ProduktSida {
    width: 81%;
    margin: 1.5vw auto 5vw auto;
    background-color: white;
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: 650px;
}

/* PRODUKTBILDER */

.ProduktBild {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3vw 4vw;
}

.HuvudBild {
    width: 100%;
    height: 30vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

.HuvudBild img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* BILDBLÄDDRARE */

.BildBladdrare {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1vw;
}

.Miniatyrer {
    display: flex;
    gap: 0.7vw;
    justify-content: center;
}

.Miniatyr {
    width: 5vw;
    height: 5vw;
    object-fit: cover;
    cursor: pointer;
    border: 1px solid transparent;
    opacity: 0.65;
    transition: 0.2s;
}

.Miniatyr:hover {
    opacity: 1;
}

.Miniatyr.AktivBild {
    opacity: 1;
    border: 2px solid #28190f;
}

/* BILDPILAR */

.BildPil {
    width: 2.5vw;
    height: 5vw;
    border: none;
    background-color: transparent;
    font-size: 2.5vw;
    font-family: "Creato";
    cursor: pointer;
    color: #28190f;
    transition: 0.2s;
}

.BildPil:hover {
    background-color: #eee6df;
}

/* PRODUKTINFO */

.ProduktInfo {
    padding: 5vw 4vw 4vw 2vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ProduktKategori {
    font-family: "Kenyan";
    font-size: 1vw;
    letter-spacing: 0.15vw;
    margin: 0 0 0.7vw 0;
    color: #6d503d;
}

.ProduktInfo h1 {
    font-family: "Butler";
    font-size: 3vw;
    font-weight: normal;
    margin: 0 0 1.5vw 0;
    color: #28190f;
}

.ProduktBeskrivning {
    font-family: "Creato";
    font-size: 1.15vw;
    line-height: 1.6;
    max-width: 30vw;
    margin: 0 0 2vw 0;
    color: #3d3028;
}

.ProduktPris {
    font-family: "Butler";
    font-size: 2vw;
    font-weight: normal;
    margin: 0 0 2vw 0;
    color: #28190f;
}

/* PRODUKTINFO-RADER */

.ProduktInfoRad {
    display: flex;
    align-items: center;
    gap: 0.7vw;
    margin-bottom: 0.5vw;
}

.ProduktInfoRad span {
    font-size: 1vw;
    color: #5c7650;
}

.ProduktInfoRad p {
    margin: 0;
    font-size: 0.9vw;
    color: #3d3028;
}

/* ANTAL */

.AntalSektion {
    margin-top: 2vw;
    margin-bottom: 1.5vw;
}

.AntalSektion p {
    margin: 0 0 0.5vw 0;
    font-size: 0.9vw;
}

.AntalKnapp {
    display: flex;
    align-items: center;
    border: 1px solid #8d7868;
    height: 3vw;
    width: 9vw;
}

.AntalKnapp button {
    width: 3vw;
    height: 100%;
    border: none;
    background-color: white;
    font-size: 1.3vw;
    cursor: pointer;
    font-family: "Creato";
}

.AntalKnapp button:hover {
    background-color: #eee6df;
}

.AntalKnapp span {
    flex: 1;
    text-align: center;
    font-family: "Butler";
    font-size: 1.1vw;
}

/* KÖPKNAPP */

.KundvagnKnapp {
    width: 100%;
    max-width: 25vw;
    height: 4vw;
    border: none;
    background-color: #28190f;
    color: white;
    font-family: "Kenyan";
    font-size: 1.2vw;
    letter-spacing: 0.12vw;
    cursor: pointer;
    transition: 0.2s;
}

.KundvagnKnapp:hover {
    background-color: #4b3323;
    transform: translateY(-2px);
}



/* BILDBLÄDDRARE – fungerar även när produkten bara har två bilder */
.HuvudBild img {
    max-width: 100%;
}

.Miniatyr {
    box-sizing: border-box;
}

@media (max-width: 700px) {
    .ProduktSida {
        width: 94%;
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .ProduktBild {
        padding: 6vw;
    }

    .HuvudBild {
        height: 75vw;
        max-height: 420px;
    }

    .BildBladdrare {
        gap: 10px;
        margin-top: 12px;
    }

    .Miniatyr {
        width: 64px;
        height: 64px;
    }

    .BildPil {
        width: 36px;
        height: 64px;
        font-size: 28px;
    }

    .ProduktInfo {
        padding: 6vw;
    }

    .ProduktKategori {
        font-size: 14px;
    }

    .ProduktInfo h1 {
        font-size: 32px;
    }

    .ProduktBeskrivning {
        font-size: 16px;
        max-width: none;
    }

    .ProduktPris {
        font-size: 26px;
    }

    .ProduktInfoRad span,
    .ProduktInfoRad p,
    .AntalSektion p {
        font-size: 14px;
    }

    .AntalKnapp {
        height: 44px;
        width: 130px;
    }

    .AntalKnapp button {
        width: 43px;
        font-size: 20px;
    }

    .AntalKnapp span {
        font-size: 17px;
    }

    .KundvagnKnapp {
        max-width: none;
        height: 48px;
        font-size: 15px;
    }

    .TillbakaKnapp {
        margin: 16px 0 0 3%;
        padding: 10px 14px;
        font-size: 12px;
    }
}


/* Visar om huvudbilden är framsidan eller baksidan */
.BildText {
    margin: 0.8vw 0 0;
    text-align: center;
    color: #28190f;
    font-family: "Creato";
    font-size: 0.95vw;
    letter-spacing: 0.04vw;
}

@media (max-width: 700px) {
    .BildText {
        margin-top: 10px;
        font-size: 14px;
    }
}


/* Tydlig etikett för vilken sida av skärbrädan som visas */
.ProduktBild .BildText {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    width: 100%;
    min-height: 1.5em;
    margin: 12px 0 8px;
    color: #28190f !important;
    background: #f5eee8;
    padding: 8px 12px;
    box-sizing: border-box;
    text-align: center;
    font-family: "Creato", Arial, sans-serif;
    font-size: 16px !important;
    font-weight: 600;
    line-height: 1.4;
    z-index: 5;
}

@media (max-width: 700px) {
    .ProduktBild .BildText {
        font-size: 15px !important;
        margin: 10px 0;
    }
}


/* Tydlig etikett direkt under huvudbilden */
#BildText.BildText {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 20 !important;
    width: 100% !important;
    min-height: 20px;
    margin: 10px 0 8px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #28190f !important;
    text-align: center !important;
    font-family: Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    letter-spacing: 1px;
}


/* Etikett på produktsidan Klassikern.html */
.ProduktBild #BildText {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
    width: 100% !important;
    min-height: 22px !important;
    margin: 10px 0 8px !important;
    padding: 5px !important;
    box-sizing: border-box !important;
    background-color: #f5eee8 !important;
    color: #28190f !important;
    text-align: center !important;
    font-family: Arial, sans-serif !important;
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1.4 !important;
    letter-spacing: 1px !important;
}
