/* =========================
   GLOBAL / RESET
========================= */
body{
    margin:0;
    font-family:Arial, sans-serif;
    background:#f5f5f5;

}
.body{
    background-image: url("../bilder/bakgrund.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* =========================
   LAYOUT / CONTAINER
========================= */
.container{
     max-width:100%;
    margin:auto;
}


main{
    max-width: 800px;
    margin:40px auto;
    background:white;
    padding:30px;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
  
}


/* =========================
   HEADER
========================= */
.header{
    display:grid;
    grid-template-columns: auto 1fr auto;
    align-items:center;
    padding:5px 25px;
    background:#0D2C54;
    color:white;
}

.logo img{
    height:50px;
    width:auto;
}

.title{
    text-align:center;
    font-size:26px;
    font-weight:800;
    letter-spacing:3px;
    text-transform:uppercase;
    font-family:'Segoe UI', Arial, sans-serif;
    color:white;
    text-decoration: underline;
    text-underline-offset:5px;
    text-decoration-color:#4DA8DA;
}

.menu{
    font-size:15px;
    cursor:pointer;
    text-align:right;
}

/* =========================
   NAVIGATION
========================= */
.nav{
    display:flex;
    transition: max-height 0.5s ease;
    max-height: 500px; /* default for desktop */
    overflow: hidden;
}

.nav.closed {
    max-height: 0;
}

.nav a{
    flex:1;
    text-align:center;
    padding:12px;
    background:#4DA8DA;
    color:white;
    text-decoration:none;
}

.nav a:hover{
    background:#0D2C54;
}

/* =========================
   BUTTONS/HERO
========================= */
.button{
    display:inline-block;
    background:#4DA8DA;
    color:white;
    padding:12px 25px;
    border:none;
    border-radius:5px;
    text-decoration:none;
    font-size:16px;
    font-weight:bold;
    font-family:'Segoe UI', Arial, sans-serif;
}

.button:hover{
    background:#0D2C54;
}
.hero-text {
    display: grid;
    justify-items: center;
    text-align: center;
    padding: 20px;

}

/* =========================
   FORM (BESTÄLLNING)
========================= */
form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

form label{
    text-align:left;
    font-weight:bold;
}

form input,
form select{
    padding:10px;
    border-radius:5px;
    border:1px solid #ccc;
    font-size:14px;
}

form input:focus,
form select:focus{
    outline:none;
    border:1px solid #4DA8DA;
}

form button{
    margin-top:10px;
    width:100%;
}

/* =========================
   PRODUKTVAL (CHECKBOX + ANTAL)
========================= */
.product-options{
    display:grid;
    grid-template-columns: auto auto auto;
    gap:10px;


}


.product-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    padding:10px;
    border:1px solid #ddd;
    border-radius:6px;
    background:#f9f9f9;
}

.product-item label{
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
}

.product-item input[type="checkbox"]{
    width:16px;
    height:16px;
}

.product-item input[type="number"]{
    width:70px;
    padding:5px;
}

/* PRODUKTSIDA */
.products{
    background: white;
    padding: 30px;
    border-radius: 10px;
}

.product-grid{
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap:20px;
    
    
}

.product{
   padding:20px;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    transition:0.3s;
    background: white;
    will-change: transform;
}


.product:hover{
    transform:translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}


       /* bredd växer automatiskt */
.img {
    width: 100%;
    max-width: 200px;   
    margin: 0 auto;
}

.img img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}
/* PRODUKTKORT */
h2{
    text-align: center;
}
.sok{
    display:flex;
    
    margin-bottom:30px;
}
.product-cardz{
    display:grid;
    grid-template-columns: repeat(3,1fr);
    gap:20px;
}

.product-card{
    text-align:center;
    padding:20px;
    border:1px solid #ddd;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.1);
    transition:0.3s;
}

.product-card:hover{
    transform:translateY(-5px);
}

.product-card img{
    width:100%;
    height:150px;
    object-fit:cover;
}

/* =========================
   JÄMFÖRELSESIDA
========================= */
.compare{
    max-width:800px;
    margin:40px auto;
    padding:30px;
    background:white;
    text-align:center;
}

.compare-select{
    display:flex;
    justify-content:center;
    gap:40px;
}

.compare-table{
    width:100%;
    border-collapse:collapse;
    margin-top:20px;
}

.compare-table th,
.compare-table td{
    border:1px solid #ccc;
    padding:10px;
}

.compare-table th{
    background:#4DA8DA;
    color:white;
    width: 33.33%;
}

.compare-table tr:nth-child(even){
    background:#f9f9f9;
}

/* =========================
   FOOTER/faq
========================= */
.footer{
    text-align:center;
    padding:20px;
    background:#0D2C54;
    color:white;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:1024px){
    .product-grid,
    .product-cardz{
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width:768px){

    .header{
        grid-template-columns:1fr;
        text-align:center;
        gap:10px;
    }

    .nav{
        flex-direction:column;
        max-height: 0;
        overflow: hidden;
    }

    .product-grid,
    .product-cardz,
    .product-options{
        grid-template-columns:1fr;
    }

    .compare-select{
        flex-direction:column;
        gap:15px;
    }
}
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 24px;
    }
}