/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #000000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin:0;
    
    /* --- LOGGA SOM BAKGRUND --- */
    /* Vi lägger en vit ton (0.9) över bilden så den blir som ett snyggt vattenmärke */
    background-image: linear-gradient(rgba(244, 244, 244, 0.102), rgba(244, 244, 243,0.1)), url('Logga.png');
    background-color: #ffffffe2;
    background-attachment: fixed; /* Loggan ligger still när man scrollar */
    background-position: center;
    background-repeat: no-repeat;
    background-size: 50%; /* Justera denna % för att göra loggan större/mindre */
}

/* Header */
header {
    background-color: #051b2bdc;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin-bottom: 10px; 
    text-align: center;
}

/* Header-loggan (den lilla bilden du har i HTML) */
header img {
    max-width: 100px;
    margin-top: 10px;
    border-radius: 50%;
}

nav ul {
    background: rgba(0,0,0,0.4);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    display: inline-flex;
    justify-content: center;
    list-style: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
}
nav{
    text-align: center;
    margin-top: 20px;
}
nav ul li {
    margin: 0 15px;
}

nav ul li a {
    transition: color 0.3s ease;
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    
}
nav ul li a::after{
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ffd700;
    transition: width 0.3s ease;;
}
nav ul li a:hover {
   color: #ffd700;
   text-decoration: none;
}
nav ul li a:hover::after{
    width: 100%;
}

nav ul li a.active{
    color: #ffd700;
    border-bottom: 2px solid #ffd700;
}

/* Main Sections */
main {
    padding: 20px;
    max-width: 1200px; /* Centrerar innehållet för bättre look */
    margin: 0 auto;
    flex: 1;

}

section {
    margin-bottom: 40px;
}

/* Booking Section */
#Bookning {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Priser Section */
.priser-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}


.project-card {
    background-color: rgb(255, 255, 255);
    border-radius: 10px;
    padding: 20px;
    /* Vi sätter en fast bredd så att de alltid ryms 3 stycken på en vanlig skärm */
    width: 300px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Håller knappen längst ner även om texten är olika lång */
}


.project-card:hover {
    transform: translateY(-5px);
}



.project-card img {
    width: 100%;
    height: 200px;       /* Tvingar alla bilder att vara lika höga */
    object-fit: contain; /* Gör att bilden inte trycks ihop eller beskärs fult */
    border-radius: 10px;
    margin-bottom: 15px;
}



/* Contact Form */
form {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    margin: 0 auto; /* Centrerar formuläret */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

form label {
    display: block;
    margin-top: 10px;
}

form input, form textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

form button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

form button:hover {
    background-color: #005fa3;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #222;
    color: white;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 900px) {
    .project-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 10px;
    }
    
    .project-card {
        width: 100%;
    }
    
    body {
        background-size: 80%; /* Större logga på mobilen */
    }
}

/*VARUKORGEN */

.cart-container{
    position: fixed;
    top: 30px;
    right: 30px;
    background-color: #1a1a1a;
    padding: 12px 20px;
    border-radius: 30px;
    z-index: 1000;
    border: 1px solid #051b2bdc;;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: all 0.3 ease;
    cursor: pointer;
}
.cart-container:hover{
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    border-color: #ffd700;
}

.cart-link{
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
}



.cart-count{
    background-color: white;
    color:black;
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 0.9em;
    font-weight: bold;
}
/*Produktlista*/

#product-list, .product-container, #Produkt-lista {
    display: flex;        
    flex-wrap: wrap;      
    justify-content: center; 
    gap: 25px;             
    padding: 30px 0;
    width: 100%;
}

/* --- OM OSS STYLING --- */
.about-hero {
    background-color: #051b2bdc;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
    padding: 20px;
}

.about-image-side, .about-text-side {
    flex: 1;
    min-width: 300px;
}

.about-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}

.feature {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9em;
}

/* Bildspel (Slideshow) */
.slideshow-container {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Skapar ordentligt med utrymme mellan varje steg i bokningsformuläret */
.booking-step {
    margin-bottom: 40px;
}

.booking-step h3 {
    margin-bottom: 15px; /* Ger även lite luft mellan rubriken och rutorna */
}


/* --- BOKNINGSVAL (TJÄNSTER & FRISÖRER) --- */
.service-grid {
    display: flex;
    flex-direction: column; 
    gap: 12px;
    margin-top: 15px;
    align-items: flex-start; /* Trycker hela listan med rutor till vänster */
}

.service-option {
    display: flex;
    align-items: center; 
    flex-direction: row-reverse; /* <-- MAGIN: Vänder så knappen hamnar till höger! */
    justify-content: space-between; /* Trycker ut texten och knappen till varsin kant */
    gap: 15px; 
    background-color: white;
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%; 
    max-width: 450px; /* Gör rutorna lagom långa och snygga */
}

/* Rutan lyser upp lite när kunden håller musen över */
.service-option:hover {
    border-color: #ffd700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-card {
    display: flex;
    justify-content: space-between; /* Skjuter isär namnet och priset inuti textdelen */
    width: 100%;
    font-size: 1.1rem;
}

.service-card .price {
    font-weight: bold;
    color: #051b2b;
}

/* Fixar till själva runda knappen */
.service-option input[type="radio"] {
    margin: 0;
    transform: scale(1.3);
    cursor: pointer;
}