
/* =========================================
   KJORA SHOP – RESPONSIV LAYOUT
   ========================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    width: 100%;
    min-height: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: rgb(44, 39, 35) url("Bilder/Mönster4.png") repeat;
    color: white;
    overflow-x: clip;
}

img {
    max-width: 100%;
}

a {
    text-decoration: none;
}

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

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

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

/* =========================================
   NAVBAR
   ========================================= */

.navbar {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 100px;
    padding: 12px clamp(18px, 5vw, 80px);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    background: rgba(40, 25, 15, 0.97);
}

.nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo img {
    display: block;
    width: clamp(95px, 12vw, 155px);
    height: 72px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: clamp(12px, 2vw, 30px);
}

.nav-links a {
    display: flex;
    align-items: center;
    white-space: nowrap;

    color: white;
    font-family: "Bank", sans-serif;
    font-size: clamp(11px, 1vw, 16px);
    letter-spacing: 0.04em;

    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.aktiv {
    color: #d8b08c;
}

.nav-links a img {
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
}

/* =========================================
   SHOPENS HUVUDDEL
   ========================================= */

.shop-main {
    position: relative;
    width: 100%;
    display: block;
    flex: 0 0 auto;
    background-color: rgb(44, 39, 35);
}

/* =========================================
   PRODUKTBILDER
   ========================================= */

.produkt,
.Shop1,
.Shop2,
.Shop3,
.Shop4,
.Shop5,
.Shop6,
.Shop7 {
    position: relative;
    width: 100%;
    height: clamp(480px, 58vw, 760px);
    min-height: 0;

    display: none;
    overflow: hidden;

    background-position: center center;
    background-repeat: no-repeat;
    background-size: auto 88%;

    color: #17120e;
}

/* Visa första produkten från start */
.Shop1 {
    display: block;
    background-image: url("Bilder/Shopserveraren.png");
}

.Shop2 {
    background-image: url("Bilder/Shopklassikern.png");
}

.Shop3 {
    background-image: url("Bilder/Shopgrillbrädan.png");
}

.Shop4 {
    background-image: url("Bilder/shopfrukostbrädan1.png");
}

.Shop5 {
    background-image: url("Bilder/ShopSnäddarn.png");
}

.Shop6 {
    background-image: url("Bilder/shopcirkeln1.png");
}

.Shop7 {
    background-image: url("Bilder/shoprundan.png");
}

/* =========================================
   PRODUKTINFORMATION
   Bilden ligger centrerad ovanför informationen.
   Informationen får en egen sammanhängande panel.
   ========================================= */

.produkt-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    min-height: 135px;
    padding: 18px clamp(18px, 4vw, 60px);

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: clamp(18px, 4vw, 60px);
    row-gap: 10px;

    background: rgba(244, 232, 216, 0.97);
    color: #17120e;
}

.produkt-info h2 {
    grid-column: 1 / -1;
    grid-row: 1;

    margin: 0;
    font-family: "Butler", serif;
    font-size: clamp(24px, 2.5vw, 36px);
    line-height: 1.2;
    text-align: left;
}

.produkt-info h3 {
    grid-column: 1;
    grid-row: 2;

    margin: 0;
    max-width: 100%;

    font-family: "Creato", sans-serif;
    font-size: clamp(12px, 1vw, 15px);
    font-weight: normal;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.produkt-info h4 {
    grid-column: 3;
    grid-row: 2;

    margin: 0;
    white-space: nowrap;

    font-family: "Butler", serif;
    font-size: clamp(14px, 1.2vw, 18px);
}

.produkt-info a {
    grid-column: 2;
    grid-row: 2;

    min-width: 120px;
    min-height: 48px;
    padding: 12px 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #21170f;
    border-radius: 12px;
    background: wheat;
    color: #17120e;

    font-family: "Butler", serif;
    font-size: clamp(13px, 1.1vw, 17px);
    text-align: center;

    transition: background 0.2s ease;
}

.produkt-info a:hover {
    background: #e7c58e;
}

/* =========================================
   PRODUKTNAVIGERING
   Pilarna sitter på sidorna om produktbilden.
   ========================================= */

.Pil1,
.Pil2 {
    position: absolute;
    z-index: 5;
    top: 40%;

    width: 54px;
    height: 54px;
    padding: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background: transparent;
    cursor: pointer;
}

.Pil1 {
    left: clamp(8px, 5vw, 70px);
}

.Pil2 {
    right: clamp(8px, 5vw, 70px);
}

.Pil1 img,
.Pil2 img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.Pil1:hover img,
.Pil2:hover img {
    transform: scale(1.15);
}

/* =========================================
   PRICKAR – ALLTID VÅGRÄTT
   Fungerar med li och button i HTML.
   ========================================= */

.produkt-navigering {
    position: relative;
    width: 100%;
    min-height: 58px;
    padding: 8px 12px 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgb(44, 39, 35);
}

.Lista1 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 8px 0;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(9px, 1.5vw, 18px);

    list-style: none;
    overflow: hidden;
}

.Lista1 li {
    flex: 0 0 12px;
    width: 12px;
    min-width: 12px;
    height: 12px;
    margin: 0;
    padding: 0;
}

.Lista1 li button {
    appearance: none;
    -webkit-appearance: none;

    display: block;
    width: 12px;
    min-width: 12px;
    height: 12px;
    margin: 0;
    padding: 0;

    border: 1px solid white;
    border-radius: 50%;
    background: transparent;

    cursor: pointer;
}

.Lista1 li.aktiv-prick button,
.Lista1 li.ett button {
    background: white;
}

.Lista1 li button:hover {
    background: #d8b08c;
}

/* =========================================
   DESIGNSTUDIO-SEKTION
   ========================================= */

.design-cta {
    width: 100%;
    padding: clamp(35px, 5vw, 75px) 20px;
    background: white;
    color: white;
}

.design-cta-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 55px);

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;

    background: rgb(44, 39, 31);
    text-align: center;
}

.Text1 {
    margin: 0;
    font-family: "Creato", sans-serif;
    font-size: clamp(25px, 2.5vw, 38px);
    line-height: 1.25;
}

.Text2 {
    width: 100%;
    max-width: 650px;
    margin: 0;

    font-family: "Bank", sans-serif;
    font-size: clamp(12px, 1vw, 15px);
    line-height: 1.8;
}

.Knapp1a {
    width: min(100%, 320px);
    min-height: 56px;
    padding: 14px 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 35px;
    background: wheat;
    color: #17120e;

    font-family: "Butler", serif;
    font-size: clamp(16px, 1.6vw, 21px);
}

.Knapp1a:hover {
    background: #e7c58e;
}

/* =========================================
   FOOTER
   ========================================= */

footer {
    width: 100%;
    padding: 40px clamp(22px, 8vw, 120px);

    display: grid;
    grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 48px);

    background: rgb(40, 25, 15);
    color: white;
}

footer > div {
    min-width: 0;
}

footer .footer-brand img {
    display: block;
    width: clamp(95px, 8vw, 140px);
    height: auto;
    object-fit: contain;
}

.footer-brand p {
    margin: 12px 0 0;
    font-family: "Butler", serif;
    font-size: clamp(12px, 1vw, 16px);
    line-height: 1.5;
}

footer h4 {
    margin: 0 0 14px;
    font-family: "Bank", sans-serif;
    font-size: clamp(12px, 1vw, 15px);
    letter-spacing: 0.08em;
    opacity: 0.65;
}

footer a {
    display: block;
    margin-bottom: 10px;

    color: white;
    font-family: "Creato", sans-serif;
    font-size: clamp(12px, 0.95vw, 15px);
    line-height: 1.5;
    overflow-wrap: anywhere;
    opacity: 0.8;
}

footer a:hover {
    color: #d8b08c;
    opacity: 1;
}

/* =========================================
   MINDRE LAPTOPS OCH SURFPLATTOR
   ========================================= */

@media (max-width: 1000px) {
    .navbar {
        min-height: 82px;
        padding: 10px 24px;
        gap: 16px;
    }

    .nav-logo img {
        width: 105px;
        height: 60px;
    }

    .nav-links {
        gap: clamp(9px, 1.5vw, 16px);
    }

    .nav-links a {
        font-size: clamp(10px, 1.25vw, 13px);
        letter-spacing: 0.02em;
    }

    .produkt,
    .Shop1,
    .Shop2,
    .Shop3,
    .Shop4,
    .Shop5,
    .Shop6,
    .Shop7 {
        height: clamp(470px, 58vw, 620px);
        background-size: auto 82%;
        background-position: center 5%;
    }

    .produkt-info {
        min-height: 125px;
        padding: 16px 24px;
        column-gap: 22px;
    }

    .produkt-info h3 {
        font-size: 12px;
    }

    .produkt-info a {
        min-width: 105px;
        min-height: 44px;
        padding: 10px;
    }

    .Pil1 {
        left: 12px;
    }

    .Pil2 {
        right: 12px;
    }

    footer {
        padding: 32px 5%;
        gap: 22px;
    }
}

/* =========================================
   MOBIL
   ========================================= */

@media (max-width: 760px) {
    .navbar {
        min-height: auto;
        padding: 10px 12px 14px;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
    }

    .nav-logo img {
        width: 90px;
        height: 54px;
    }

    .nav-links {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 13px;
    }

    .nav-links a {
        font-size: clamp(10px, 2.4vw, 13px);
    }

    .nav-links a img {
        width: 22px;
        height: 22px;
    }

    .produkt,
    .Shop1,
    .Shop2,
    .Shop3,
    .Shop4,
    .Shop5,
    .Shop6,
    .Shop7 {
        width: 100%;
        height: clamp(470px, 125vw, 680px);
        background-size: auto 65%;
        background-position: center 10px;
        background-repeat: no-repeat;
    }

    .produkt-info {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;

        min-height: 0;
        padding: 16px 18px 20px;

        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
        gap: 10px 14px;
    }

    .produkt-info h2 {
        grid-column: 1 / -1;
        grid-row: 1;
        font-size: clamp(24px, 6vw, 32px);
    }

    .produkt-info h3 {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
        font-size: 13px;
        line-height: 1.5;
    }

    .produkt-info a {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        min-width: 112px;
        min-height: 44px;
    }

    .produkt-info h4 {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
        align-self: center;
        font-size: 15px;
    }

    .Pil1,
    .Pil2 {
        top: 28%;
        width: 42px;
        height: 42px;
        padding: 7px;
    }

    .Pil1 {
        left: 4px;
    }

    .Pil2 {
        right: 4px;
    }

    .Pil1 img,
    .Pil2 img {
        width: 24px;
        height: 24px;
    }

    .produkt-navigering {
        min-height: 52px;
        padding: 8px 10px 18px;
    }

    .Lista1 {
        gap: clamp(8px, 2.2vw, 13px);
        padding: 8px 0;
    }

    .Lista1 li {
        flex: 0 0 10px;
        width: 10px;
        min-width: 10px;
        height: 10px;
    }

    .Lista1 li button {
        width: 10px;
        min-width: 10px;
        height: 10px;
    }

    .design-cta {
        padding: 28px 14px;
    }

    .design-cta-inner {
        gap: 18px;
        padding: 28px 18px;
    }

    .Text1 {
        font-size: clamp(24px, 6vw, 32px);
    }

    .Text2 {
        font-size: 12px;
        line-height: 1.8;
    }

    .Knapp1a {
        min-height: 50px;
        font-size: 16px;
    }

    footer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 26px 18px;
        padding: 28px 20px;
    }

    footer .footer-brand {
        grid-column: 1 / -1;
    }

    footer .footer-brand img {
        width: 105px;
    }

    footer h4 {
        font-size: 12px;
        margin-bottom: 12px;
    }

    footer a {
        font-size: 12px;
        margin-bottom: 9px;
    }
}

/* =========================================
   MYCKET SMÅ MOBILER
   ========================================= */

@media (max-width: 380px) {
    .nav-links {
        gap: 9px 10px;
    }

    .nav-links a {
        font-size: 10px;
    }

    .produkt,
    .Shop1,
    .Shop2,
    .Shop3,
    .Shop4,
    .Shop5,
    .Shop6,
    .Shop7 {
        height: 500px;
        background-size: auto 60%;
        background-position: center 8px;
    }

    .produkt-info {
        padding: 14px 12px 16px;
    }

    .produkt-info h2 {
        font-size: 23px;
    }

    .produkt-info h3 {
        font-size: 12px;
    }

    .produkt-info a {
        min-width: 100px;
        font-size: 12px;
    }

    .produkt-info h4 {
        font-size: 13px;
    }

    .Lista1 {
        gap: 7px;
    }

    .Lista1 li {
        flex-basis: 9px;
        width: 9px;
        min-width: 9px;
        height: 9px;
    }

    .Lista1 li button {
        width: 9px;
        min-width: 9px;
        height: 9px;
    }

    footer {
        padding: 24px 14px;
        gap: 22px 12px;
    }
}

/* =========================================
   STORA SKÄRMAR
   ========================================= */

@media (min-width: 1400px) {
    .shop-main {
        max-width: 1800px;
        margin: 0 auto;
    }

    .produkt,
    .Shop1,
    .Shop2,
    .Shop3,
    .Shop4,
    .Shop5,
    .Shop6,
    .Shop7 {
        height: min(60vw, 820px);
    }
}

/* =========================================
   SHOP – FINJUSTERING AV BAKGRUND OCH PILAR
   ========================================= */

/* Minska den mörka bakgrundens bredd och centrera sektionen */
.shop-main {
    width: calc(100% - 48px);
    max-width: 1600px;
    margin: 0 auto;
    background: transparent;
}

/* Ge produktområdet en centrerad, sammanhängande yta */
.shop-main .produkt,
.shop-main .Shop1,
.shop-main .Shop2,
.shop-main .Shop3,
.shop-main .Shop4,
.shop-main .Shop5,
.shop-main .Shop6,
.shop-main .Shop7 {
    width: 100%;
    margin: 0 auto;
    background-color: #eee1cf;
    background-repeat: no-repeat;
    background-position: center 12px;
    background-size: auto 78%;
}

/* Produktinformationen ska följa samma bredd som produktområdet */
.produkt-info {
    left: 0;
    right: 0;
    width: 100%;
}

/* Separat, centrerad bakgrund bakom prickarna */
.produkt-navigering {
    width: 100%;
    min-height: 76px;
    margin: 0 auto;
    padding: 12px 70px 20px;
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #302923;
}

/* Prickarna hålls centrerade i samma område */
.Lista1 {
    width: auto;
    max-width: 100%;
    flex: 0 1 auto;
    margin: 0 auto;
    padding: 8px 0;

    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 1.5vw, 18px);
}

/* Pilarna placeras nära prickraden, inte vid ytterkanterna */
.Pil1,
.Pil2 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 42px;
    height: 42px;
    margin: 0;
    padding: 6px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: none;
}

.Pil1 {
    left: 18px;
}

.Pil2 {
    right: 18px;
}

.Pil1 img,
.Pil2 img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

/* Designsektionen får samma sidmarginaler */
.design-cta {
    width: calc(100% - 48px);
    max-width: 1600px;
    margin: 0 auto;
}

/* Surfplattor */
@media (max-width: 760px) {
    .shop-main {
        width: calc(100% - 24px);
    }

    .shop-main .produkt,
    .shop-main .Shop1,
    .shop-main .Shop2,
    .shop-main .Shop3,
    .shop-main .Shop4,
    .shop-main .Shop5,
    .shop-main .Shop6,
    .shop-main .Shop7 {
        background-size: auto 62%;
        background-position: center 8px;
    }

    .produkt-navigering {
        min-height: 64px;
        padding: 10px 46px 16px;
    }

    .Pil1 {
        left: 2px;
    }

    .Pil2 {
        right: 2px;
    }

    .Lista1 {
        gap: clamp(7px, 2vw, 12px);
    }

    .design-cta {
        width: calc(100% - 24px);
        padding: 24px 12px;
    }
}

/* Små telefoner */
@media (max-width: 380px) {
    .shop-main {
        width: calc(100% - 16px);
    }

    .produkt-navigering {
        padding-left: 38px;
        padding-right: 38px;
    }

    .Pil1,
    .Pil2 {
        width: 34px;
        height: 34px;
    }

    .Pil1 img,
    .Pil2 img {
        width: 21px;
        height: 21px;
    }

    .Lista1 {
        gap: 6px;
    }

    .design-cta {
        width: calc(100% - 16px);
    }
}
