  body {
      margin: 0;
      font-family: 'Oswald', sans-serif;
      background: 
        linear-gradient(to bottom, rgba(0, 174, 239, 0.85), rgba(0, 43, 127, 0.85)),
        url('background.jpg') no-repeat center center fixed;
      background-size: cover;
      color: white;
    }
    input::placeholder,
    textarea::placeholder,
    select,
    option {
      font-family: 'Oswald', sans-serif;
    }
    header {
      text-align: center;
      padding: 10px 20px 20px 20px; /* yläreuna pienempi, alaosa sama */
      position: relative;
      z-index: 1;
    }
    header img {
      max-width: 150px;
      border-radius: 5%;
    }
    .slogan {
      text-align: center;
      font-size: 1.4em;
      margin: 10px 0 20px;
      font-style: italic;
    }
    .how-it-works {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      gap: 40px;
      text-align: center;
      margin: 30px auto 50px;
      max-width: 900px;
      flex-wrap: wrap;
    }
    .how-step {
      flex: 1;
      min-width: 200px;
    }
    .circle {
      background-color: #163E87;
      color: white;
      width: 60px;
      height: 60px;
      line-height: 60px;
      border-radius: 50%;
      font-size: 1.4em;
      margin: 0 auto 10px;
      font-weight: bold;
    }
    .content {
      padding: 20px;
      max-width: 900px;
      margin: auto;
    }
    .section {
      background: rgba(255,255,255,0.1);
      padding: 15px;
      border-radius: 10px;
      margin-bottom: 20px;
    }
    form input, form select, form textarea {
      width: 95%;
      padding: 10px;
      margin: 10px 0;
      border: none;
      border-radius: 5px;
    }
    button {
      background-color: #0073CE;
      color: white;
      padding: 10px 20px;
      border: none;
      border-radius: 5px;
      font-size: 1em;
      cursor: pointer;
    }
    .iframe-container {
      position: relative;
      padding-bottom: 75%;
      height: 0;
      overflow: hidden;
      border-radius: 10px;
    }
    .iframe-container iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }
    .contact-info {
      background: rgba(0, 0, 0, 0.3);
      color: white;
      padding: 2rem;
      border-radius: 12px;
      text-align: center;
      margin-top: 3rem;
    }
    .contact-info p { margin: 0.5rem 0; }
    .contact-info a {
      color: #00AEFF;
      text-decoration: none;
      font-weight: bold;
    }
    .contact-info a:hover {
      text-decoration: underline;
    }

    .social-banner {
      position: fixed;
      top: 20px; /* nostettu logoa alemmas */
      right: 15px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      z-index: 1000;
    }
    .social-banner a {
      text-decoration: none;
      display: inline-block;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      line-height: 40px;
      font-size: 1.2em;
      text-align: center;
      color: white;
    }
    .fa-facebook { background: #3B5998; }
    .fa-whatsapp { background: #25D366; }
    .fa-envelope { background: #EA4335; }
    .fab:hover, .fas:hover { opacity: 0.7; }

    .social-img, .footer-img {
      display: inline-block;
      width: 40px;   /* social-banner */
      height: 40px;
      border-radius: 50%;
      background: none
      padding: 5px;     /* vähän sisätilaa kuvalle */
      box-sizing: border-box;
      vertical-align: middle;
      transition: opacity 0.3s;
    }
    .footer-img {
      width: 60px;   /* footerin isot logot */
      height: 60px;
    }

    .social-img:hover, .footer-img:hover {
      opacity: 0.7;  /* sama hover kuin FontAwesome */
    }


    footer.footer {
      text-align: center;
      padding: 2rem;
      font-size: 0.9rem;
      color: #ddd;
    }
    .footer a {
      margin: 0 10px;
      text-decoration: none;
      display: inline-block;
      width: 60px;
      height: 60px;
      border-radius: 50%;
      line-height: 60px;
      font-size: 1.8em;
      text-align: center;
      color: white;
    }
    
/* KARUSELLI */
.carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 20px;
}

.cards-wrapper {
  display: flex;
  transition: transform 0.5s ease;
  cursor: grab;
  will-change: transform;
}

.cards-wrapper:active { cursor: grabbing; }

.slide-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.slide-wrapper .card-name {
  margin-top: 10px;
  font-size: 1em;
  color: white;
  font-weight: bold;

  max-width: 280px;
  text-align: center;
  line-height: 1.2em;
  max-height: calc(1.2em * 5);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  word-wrap: break-word;
  white-space: normal;
}
.slide-wrapper img {
  width: 250px;       /* oletus leveillä näytöillä */
  margin: 0 15px;
}

.slide-wrapper img:hover {
  transform: scale(1.05);
}
.slide-wrapper .add-to-cart-btn {
  margin-top: 8px; /* pieni väli tekstin ja napin väliin */
}
.card-list .add-to-cart-btn {
  margin-top: 6px;
}

/* NUOLINAPIT */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}
.carousel-btn:hover { background: rgba(0,0,0,0.7); }

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }


    /* --- Modal tyylit --- */
    .modal {
      display: none;
      position: fixed;
      z-index: 2000;
      padding-top: 60px;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      overflow: auto;
      background-color: rgba(0,0,0,0.9);
    }
    .modal-content {
      margin: auto;
      display: block;
      max-width: 90%;
      max-height: 80vh;
      border-radius: 12px;
      box-shadow: 0 0 20px rgba(0,0,0,0.5);
    }
    #caption {
      margin: 15px auto;
      text-align: center;
      color: #ccc;
      font-size: 18px;
    }
    .close {
      position: absolute;
      top: 20px;
      right: 35px;
      color: #fff;
      font-size: 40px;
      font-weight: bold;
      cursor: pointer;
      transition: 0.3s;
    }
    .close:hover { color: #bbb; }

/* Lisää koriin -napit */
.add-to-cart-btn {
  background-color: #28a745; /* vihreä */
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.add-to-cart-btn:hover {
  background-color: #218838; /* tummempi vihreä hoverilla */
}

/* Ostoskori-ikoni vihreäksi */
#cart-icon {
  background:#5ee780da !important;
}

/* Toast-ilmoitus */
#toast {
  visibility: hidden;
  min-width: 200px;
  background-color: #28a745;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 12px;
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 4000;
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
}
#toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 40px; /* nousee hieman */
}

@media (max-width: 768px) {
  header {
    display: flex;
    flex-direction: row; /* vaakasuunnassa */
    justify-content: flex-start; /* logo vasempaan */
    align-items: center; /* keskitys pystysuoraan */
    padding: 10px 15px;
    text-align: left; /* poista keskitys */
  }
  header img {
    max-width: 100px;
    margin: 0; /* ei ylimääräistä keskitystä */
  }
  header h1,
  header .slogan,
  header .how-it-works {
    display: none; /* piilotetaan tekstit ja askelkuvaukset mobiilissa */
  }
  .social-banner { 
    top: 20px;
    right: 15px;
  }
  .slide-wrapper img {
    width: 35vw;     /* vie suurimman osan näytöstä */
    margin: 0 15;  /* keskitetään */
  }
  .slide-wrapper .card-name {
    max-width: 80vw;
    font-size: 0.9em;
  }
}
.view-toggle {
  margin: 10px 0;
  text-align: right;
}
.toggle-btn {
  background: #163E87;
  color: #fff;
  border: none;
  padding: 6px 12px;
  margin-left: 5px;
  border-radius: 6px;
  cursor: pointer;
}
.toggle-btn.active {
  background: #0073CE;
}

.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
  margin-top: 20px;
}
.card-list .card-item {
  text-align: center;
  cursor: pointer;
}
.card-list .card-item img {
  width: 120px;
  border-radius: 8px;
  transition: transform 0.3s;
}
.card-list .card-item img:hover {
  transform: scale(1.05);
}
.card-list .card-name {
  font-size: 0.9em;
  margin-top: 5px;
  color: white;
}