/* Perustyylit */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

:root {
  --header-h: 120px;
  --container-max: 1200px;
  --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
  font-family: "Roboto", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000000;
  color: #ffffff;
  line-height: 1.6;
  scroll-behavior: smooth;
  /* Selaimen taustakuva näkyy koko sivulla (myös headerin alla) */
  background-image: url("tausta 3840x2160.jpg");
  background-position: center; 
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #ff8c00;
}

h1,
h2,
h3 {
  margin: 0 0 15px 0;
  font-weight: 700;
}

p {
  margin: 0 0 15px 0;
}

/* Navigaatio */
header {
  min-height: 120px;
  --header-h: 120px;
  padding: 8px 0;
  position: absolute;
  width: 100%;
  z-index: 1000;
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: rgba(0, 0, 0, 0.35); */
  z-index: 1;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  position: relative;
  z-index: 2;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-image {
  display: block;
  width: auto;
  max-height: 30px;
  height: auto;
}

/* Nav links: parempi mobiili- ja wrap-käytös */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;           /* sallii rivinvaihdon kun tila loppuu */
  justify-content: center;   /* keskittää linkit */
}

.nav-links li {
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 6px 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  white-space: normal;       /* salli rivinvaihdot tarvittaessa */
  line-height: 1.1;
}

/* Etusivu - Hero-osio */
.hero-section {
  padding-top: calc(var(--header-h) + 20px);
  min-height: 50vh;
  background-color: transparent; /* tausta tulee nyt bodysta */
  position: relative;
}

.hero-content {
  display: flex;
  gap: 40px;
  padding-bottom: 40px;
  width: 100%;
}

/* Hero-kuva desktop */
.hero-image-placeholder {
  flex: 1;
  min-height: 320px;
  /* background-color: rgba(0, 0, 0, 0.35); */
  background-image: url("etusivunkuva1.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 60%;
  display: block;
  margin-top: calc(-1 * var(--header-h) + 50px);
}

.hero-text {
  flex: 1;
  position: relative;
  z-index: 2;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 20px;
}

.hero-text h1 {
  font-size: 3.6em;
  font-weight: 700;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.slogan {
  font-size: 1.1em;
  color: #ff8c00;
  font-weight: 300;
  margin-bottom: 20px;
}

.separator {
  color: #999;
  font-size: 0.9em;
  font-weight: 300;
  margin-bottom: 10px;
  margin-top: 10px;
  padding: 5px;
}

.description {
  font-size: 1.05em;
  margin-bottom: 20px;
  max-width: 620px;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  border: 1px solid #ff8c00;
  color: #ff8c00;
  text-transform: uppercase;
  font-weight: 700;
  transition: background-color 0.3s, color 0.3s;
  font-size: 0.95em;
}

.cta-button:hover {
  background-color: #ff8c00;
  color: #1a1a1a;
}

/* Viimeisimmät Projektit */
.latest-projects {
  padding: 50px 0;
  text-align: center;
}

.latest-projects h2 {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #fff;
}

.projects-grid {
  display: flex;
  justify-content: center ;
  gap: 20px;
  flex-wrap: nowrap;
}

.project-card {
  background-color: #252525;
  padding: 10px;
  text-align: center;
  width: calc(33.333% - 40px);
  min-width: 250px;
  margin-bottom: 30px;
}

.project-image-placeholder {
  width: 100%;
  height: 230px;
  background-color: #444;
  margin-bottom: 25px;
  overflow: hidden;
  position: relative;
  display: block;
}

.project-image {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  height: 100%;
  width: 100%;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  display: block;
  transition: opacity 0.2s ease;
}

.img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  z-index: 5;
}

.img-nav.prev { left: 8px; }
.img-nav.next { right: 8px; }

.img-nav:focus { outline: 2px solid rgba(255,140,0,0.6); outline-offset: 2px; }

.product-box { display: flex; flex-direction: column; align-items: center; }

/* Lightbox image styling (modaalin sisälle) */
.site-modal img.lightbox-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.product-card h3 {
  font-size: 1.2em;
  margin-bottom: 5px;
}

.project-card p {
  color: #ccc;
  font-size: 0.9em;
}

/* Lyhyt Tietoa Meistä */
.about-section-short {
  padding: 50px 0;
  text-align: center;
  border-top: 1px solid #333;
}

.about-section-short h2 {
  font-size: 1.8em;
  margin-bottom: 30px;
}

.about-section-short p {
  max-width: 800px;
  margin: 0 auto;
}

.footer-contact-short {
  text-align: center;
  padding: 20px 0;
  font-size: 0.8em;
  color: #999;
}

/* Tietoa Meistä Täysi */
.about-us-full {
  background-color: #111111;
  padding: 60px 0;
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  
}

.about-us-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px;
}

.logo-small,
.slogan-small {
  position: absolute;
  left: 5%;
  transform: translateY(-50%);
  font-size: 1.2em;
}

.slogan-small {
  top: 50px;
  color: #ff8c00;
  font-size: 0.9em;
}

.nav-link-small {
  font-weight: 700;
  font-size: 1em;
}

.about-us-content {
  text-align: center;
  padding-bottom: 70px 0;
  padding-top: 90px;
  max-width: 900px;
  margin: 0 auto;
}

.about-us-content h2 {
  font-size: 2.2em;
  margin-bottom: 20px;
}

.about-us-content p {
  font-size: 0.9em;
  line-height: 1.8;
  color: #ddd;
}

.about-section-full {
  padding: 90px 0;
}

.footer-contact-full {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 800px;
  padding-top: 50px;
  border-top: 1px solid #333;
  font-size: 0.9em;
  color: #999;
}

/* Ota Yhteyttä */
.contact-section {
  position: relative;
  padding: 60px 0;
  text-align: center;
}

.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 50px;
  border-bottom: 1px solid #999;
}

.logo-contact {
  font-size: 1.5em;
  font-weight: 700;
}

.slogan-contact {
  color: #ff8c00;
  font-size: 0.9em;
  font-weight: 300;
}

.contact-links a {
  margin-left: 20px;
  text-transform: uppercase;
  font-weight: 400;
}

.contact-section h2 {
  font-size: 1.4em;
  margin: 50px 0 20px 0;
}

.contact-prompt {
  font-size: 1.1em;
  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.file-instructions,
[type="file"],
.contact-form textarea {
  background-color: #1a1a1a;
  border: 1px solid #555;
  padding: 15px;
  color: #ffffff;
  font-size: 1em;
  outline: none;
}

.contact-form textarea {
  height: 150px;
  resize: none;
}

.file-upload-area {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #555;
  color: #999;
  font-size: 0.9em;
}

.submit-button {
  background-color: #ff8c00;
  color: #1a1a1a;
  border: none;
  padding: 15px 30px;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-button:hover {
  background-color: #ffa500;
}

.contact-footer {
  padding-top: 50px;
  font-size: 1em;
  font-weight: 700;
}

.contact-footer p {
  margin: 5px 0;
}

/* Poistaa listapallot ja sisennyksen tietyistä listoista */
.no-bullets {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}

.no-bullets li {
    margin-bottom: 0.5rem; /* haluttu riviväli */
}

/* Media Kyselyt */

/* Tablet (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  header {
    position: relative;
    min-height: 140px;
    background-position: top center;
    --header-h: 140px;
  } 
  
  .about-section-full {
    margin-top: calc(-1 * var(--header-h) - 30px);
  }

  main.container {
    padding-top: calc(var(--header-h) - 100px) !important;
  }

  header .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .nav-links {
    margin-top: 8px;
    order: 2;
    justify-content: center;
  }

  .logo {
    order: 1;
    justify-content: center;
  }
 
  .logo-image {
    margin: 0 auto;
  }

  .nav-links li {
    margin: 0 15px;
  }

  .hero-content {
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .hero-text {
    padding: 30px 15px;
    font-size: 15px;
  }

  .cta-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  /* Tablet hero-kuva */
  .hero-image-placeholder {
    min-height: 400px;
    width: 95%;
    margin: 0 auto 20px;
    margin-bottom:  10px;
    background-size: 40%;
    background-position: center center;
    margin-top: calc(-1 * var(--header-h) - 40px);
  }

  .projects-grid {
    flex-wrap: wrap;
  }

  .project-card {
    width: 330px;
    height: 300px;
    margin-bottom: 10px;
    padding: 8px;
  }

  .about-us-header {
    flex-direction: column;
    padding-bottom: 20px;
    border-bottom: none;
  }

  .logo-small,
  .slogan-small {
    position: static;
    transform: none;
  }

  .contact-header {
    flex-direction: column;
    padding-bottom: 20px;
  }

  .contact-links a {
    margin: 10px 10px 0 10px;
    display: inline-block;
  }

  .hero-text h1 {
    font-size: 2.2em;
  }

  .description {
    font-size: 0.95em;
  }
  .logo-image {
    max-height: 74px;
  }

  .nav-links {
    gap: 12px;
    font-size: 0.95rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .project-image-placeholder {
    height: 200px;
    width: 100%;
  }

   .project-image {
    object-fit: cover; /* TAI cover */
  }
.contact-section {
  position: relative;
  padding: 10px 0;
  text-align: center;
}

}

/* Puhelin (alle 768px) */
@media (max-width: 767px) {
  header {
    position: relative;
    min-height: 140px;
    background-position: top center;
    --header-h: 140px;
  } 
  
  main.container {
    padding-top: calc(var(--header-h) - 100px) !important;
  }

  .about-section-full {
    margin-top: calc(-1 * var(--header-h) - 30px);
  }

  header .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .nav-links {
    margin-top: 8px;
    order: 2;
    justify-content: center;
  }

  .logo {
    order: 1;
    justify-content: center;
  }

  .logo-image {
    margin: 0 auto;
  }

  .nav-links li {
    margin: 0 15px;
  }

  .hero-content {
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 20px;
  }

  .hero-text {
    padding: 20px 15px;
    font-size: 14px;
  }

  .cta-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  /* Puhelin hero-kuva */
  .hero-image-placeholder {
    height: 180px;
    width: 100%;
    margin: 5px auto 15px;
    background-size: 45%;
    background-position: center center;
    margin-top: calc(-1 * var(--header-h) - 20px);
  }

  .projects-grid {
    flex-wrap: wrap;
  }

  .project-card {
    width: 70%;
    height: auto;
    margin-bottom: 20px;
    padding: 18px;
  }

  .hero-text h1 {
    font-size: 2em;
  }

  .description {
    font-size: 0.95em;
  }
  
  .logo-image {
    max-height: 70px;
  }

  .project-image-placeholder {
    height: auto;
    width: auto;
  }
.contact-section {
  position: relative;
  padding: 20px 0;
  text-align: center;
    margin-top: calc(-1 * var(--header-h) + 70px);
  
}

}

/* Erittäin pienet puhelimet (alle 375px) */
@media (max-width: 374px) {
  .hero-image-placeholder {
    height: 150px;
    background-size: 65%;
    margin-top: calc(-1 * var(--header-h) - 40px);
  }
  .about-section-full {
    margin-top: calc(-1 * var(--header-h) - 30px);
  }

  main.container {
    padding-top: calc(var(--header-h) - 100px) !important;
  }
  
  .hero-text {
    padding: 15px 10px;
  }
  
  .nav-links {
    gap: 1px;
    font-size: 0.8rem;
    flex-wrap: nowrap;
  }

  .project-card {
    width: 90%;
    padding: 15px;
  }
  .project-image-placeholder {
    height: 250px;
  }
}

/* Perustyyli (yleensä riviin keskitetty) */
.links-bottom {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 8px; /* was 10px -> reduced by 2px */
  margin-top: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

/* Erikoasettelu vain erittäin pienille näytöille (puhelin <= 374px) */
@media (max-width: 374px) {
  .links-bottom {
    display: grid;
    grid-template-columns: 1fr; /* yksi linkki per rivi */
    gap: 8px; /* was 10px -> reduced by 2px */
    justify-items: center;
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 13px;
  }

  .links-bottom a {
    display: block;
    width: 100%;
    padding: 8px 10px;
    box-sizing: border-box;
    text-align: center;
  }
}

/* Siirtää Verkkokauppa-otsikon näkyvästi headerin alapuolelle */
.page-header {
  margin-top: calc(var(--header-h) + 18px); /* säädä arvoa tarvittaessa */
  text-align: center;
}

/* Pieni lisävälilyönti otsikon alapuolelle */
.page-title {
  margin: 0 0 18px; /* aiemmin oli 0 — nostaa otsikon ympärivälin */
}

.file-upload-area {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.file-instructions {
  font-size: 0.85em;
  color: #bbb;
  margin: 0;
  flex: 1;
}

.logo-valkonen {
  max-height: 500px;
  width: auto;
  height: 90px;
  max-width: fit-content;
  display: block;
  transition: transform 0.3s ease;
}

.links-bottom{
  gap: 0px; /* was 1px -> reduced by 2px (min 0) */
  font-size: 15px;

}

@media (min-width: 768px) and (max-width: 1024px) {
  .logo-valkonen {
    max-height: 50px;
    max-width: fit-content;
  }
}

@media (max-width: 767px) {
  .logo-valkonen {
    height: 55px;
    width: 290px;
  }
  .links-bottom {
    gap: 8px; /* was 10px -> reduced by 2px */
  }
}

.alareuna {
  text-align: center;
  padding: 20px 0;
  font-size: 0.9em;
  color: #999;
}

.logo-valkonen-small {
  width: 80vw;
  max-width: 300px;
  height: auto;
}

.links-bottom {
  margin-top: 10px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px; 
  font-size: 14px;
}

.social-media {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.facebook-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.facebook-link:hover {
  transform: scale(1.1);
}

.fb-logo {
  width: 190px;
  height: auto;
}

.form-row {
            display: flex;
            gap: 15px;
        }
        
        .form-row input {
            flex: 1;
        }
        
        .file-upload-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }
        
        .add-file-btn {
            background: #ff8c00;
            color: #1a1a1a;
            border: none;
            padding: 8px 15px;
            border-radius: 3px;
            cursor: pointer;
            font-weight: 700;
            font-size: 0.9em;
            transition: background-color 0.3s;
        }
        
        .add-file-btn:hover {
            background: #ffa500;
        }
        
        .file-inputs-container {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .file-input-wrapper {
            display: flex;
            gap: 10px;
            align-items: center;
        }
        
        .file-input-wrapper input[type="file"] {
            flex: 1;
            padding: 10px;
            background-color: #1a1a1a;
            border: 1px solid #555;
            color: #ffffff;
        }
        
        .remove-file-btn {
            background: #ff4444;
            color: white;
            border: none;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1.2em;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .remove-file-btn:hover {
            background: #ff6666;
        }
        
        .file-instructions {
            background: rgba(255, 140, 0, 0.1);
            padding: 15px;
            border-radius: 5px;
            margin-top: 10px;
        }
        
        .file-instructions p {
            margin: 5px 0;
            font-size: 0.9em;
        }

        @media (max-width: 768px) {
            .form-row {
                flex-direction: column;
                gap: 10px;
            }
            
            .file-upload-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            
            .file-input-wrapper {
                flex-direction: column;
                align-items: stretch;
            }
            
            .remove-file-btn {
                align-self: flex-end;
                margin-top: 5px;
            }
        }

/* Modal overlay ja laatikko, mukaillen sivun laatikon tyyliä */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.site-modal {
    /* Voit säätää nämä arvot vastaamaan sivusi laatikkoa */
    background: var(--card-bg, #ffffff);
    color: var(--text-color, #222);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
    max-width: 460px;
    width: 100%;
    text-align: center;
    font-family: inherit;
}

.site-modal-text {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    line-height: 1.4;
}

/* Sulje-nappityyli, mukautuu sivun nappityyliin */
.site-modal-close {
    background: var(--accent, #0078d4);
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
}

.site-modal-close:focus {
    outline: 2px solid rgba(0,120,212,0.25);
    outline-offset: 2px;
}

/* Käytä pienempää taustakuvaa tableteilla ja puhelimilla */
@media (max-width: 1024px) {
  body {
    background-image: url("tausta 1080x1920.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
  
}

@media (max-width: 767px) {
  body {
    background-image: url("tausta 1080x1920.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }

}

@media (max-width: 374px) {
  body {
    background-image: url("tausta 1080x1920.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
  }
.links-bottom {
  margin-top: 10px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 5px; /* was 7px -> reduced by 2px */
  font-size: 12px;
}
}

/* Verkkokaupan tervetuloa-osio */
.shop-intro {
  text-align: center;
  padding: 30px 0;
  max-width: 900px;
  margin: 0 auto 40px;
  border-bottom: 1px solid #333;
}

.shop-intro h2 {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #fff;
}

.shop-intro p {
  font-size: 0.95em;
  line-height: 1.7;
  color: #ddd;
  margin-bottom: 15px;
}

.shop-intro a {
  color: #ff8c00;
  text-decoration: underline;
}

.shop-intro a:hover {
  color: #ffa500;
}

.shop-info-highlight {
  background: rgba(233, 105, 25, 0.08);
  border-left: 3px solid #ff8c00;
  padding: 15px 20px;
  margin: 20px 0;
  border-radius: 4px;
}

.shop-info-highlight p {
  margin: 0;
}

/* Verkkokauppa - tuotelaatikoiden tyyli (pienempi versio) */
.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 30px 0;
}

.product-box {
  background: rgba(20,20,20,0.65);
  border: 1px solid rgba(255,140,0,0.12);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  padding: 12px;
  width: calc(25% - 12px);
  min-width: 400px;
  max-width: 560px;
  box-sizing: border-box;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  height: 180px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-in;
  display: block;
  transition: opacity 0.2s ease;
}

.product-box h2 {
  font-size: 1.1em;
  margin: 0 0 5px 0;
  color: #ffd400;
}

.product-description {
  font-size: 0.9em;
  color: #e6e6e6;
  margin: 0;
  flex-grow: 1;
  line-height: 1.5;
}

.product-price {
  font-weight: 700;
  color: #ffb347;
  margin: 5px 0;
  font-size: 0.95em;
}

.buy-button {
  display: inline-block;
  padding: 9px 14px;
  border: 1px solid #ff8c00;
  color: #ff8c00;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  background: transparent;
  transition: background-color 0.2s, color 0.2s;
  font-size: 0.9em;
}

.buy-button:hover {
  background: #ff8c00;
  color: #121212;
}

/* Tuoterivit: kuva vasemmalla, tiedot oikealla */
.product-row {
  display: flex;
  gap: 20px;
  align-items: stretch;
  background: rgba(20,20,20,0.7);
  border: 1px solid rgba(255,140,0,0.12);
  border-radius: 8px;
  padding: 14px;
  margin: 14px 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

.product-image-col {
  flex: 0 0 360px; /* leveys kuvakentälle */
  max-width: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #111;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  cursor: zoom-in;
}

/* Info-kenttä vie tilan jäljelle */
.product-info-col {
  flex: 1 1 auto;
  padding: 6px 10px;
  color: #eee;
}

.product-info-col h2 {
  margin-top: 0;
  color: #ffd400;
  font-size: 1.15rem;
}

.product-summary {
  color: #ddd;
  margin-bottom: 8px;
  font-weight: 500;
}

.product-info-col p {
  margin: 6px 0;
  line-height: 1.5;
  color: #e6e6e6;
}

.product-price {
  margin-top: 8px;
  color: #ffb347;
  font-weight: 700;
  font-size: 1rem;
}

/* Osta-nappi info-osassa */
.product-info-col .buy-button {
  margin-top: 10px;
}

/* Pienemmille näytöille pinoutuu kuva tiedon yläpuolelle */
@media (max-width: 900px) {
  .product-row { flex-direction: column; }
  .product-image-col { flex: 0 0 auto; max-width: none; }
  .product-image { height: 260px; }
}

/* Tablet: kaksi saraketta */
@media (max-width: 1024px) {
  .product-box { 
    width: calc(50% - 12px);
    max-width: none;
  }
}

/* Puhelin: yksi sarake */
@media (max-width: 767px) {
  .product-box { 
    width: 100%;
    max-width: none;
  }
  .product-image { height: 160px; }
  .product-box h2 { font-size: 1.05em; }
  .product-description { font-size: 0.85em; }
}

/* Pienet puhelimet */
@media (max-width: 374px) {
  .products { gap: 12px; padding: 18px 0; }
  .product-image { height: 140px; }
  .product-box h2 { font-size: 0.95em; }
}

/* Tablet / pienemmät näytöt: kaksi saraketta navissa */
@media (max-width: 480px) {
  .nav-links {
    gap: 8px;
    padding: 8px 0;
  }
  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    justify-items: center;
    align-items: center;
  }
  .nav-links a {
    padding: 8px 6px;
    width: 100%;
    box-sizing: border-box;
  }
}

/* Erittäin pienet puhelimet: yksi sarake */
@media (max-width: 340px) {
  .nav-links {
    grid-template-columns: 1fr;
  }
  .nav-links a {
    padding: 10px 12px;
  }
}

/* Footer / bottom links - responsiivinen asettelu */
.links-bottom {
  display: flex;
  flex-wrap: wrap;           /* salli rivinvaihdot */
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 10px 0 20px;
  font-size: 14px;
}

/* linkkien yleistyylit */
.links-bottom a {
  display: inline-block;
  padding: 6px 10px;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.links-bottom a:hover {
  background: rgba(255,140,0,0.12);
  color: #ffb86b;
}

/* Pienemmät näytöt — kaksi kolumnia */
@media (max-width: 480px) {
  .links-bottom {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    padding: 0 6px;
    box-sizing: border-box;
  }

  .links-bottom a {
    display: block;
    width: 100%;
    text-align: center;
    white-space: normal; /* salli rivinvaihdot */
    padding: 10px 8px;
    box-sizing: border-box;
  }
}

/* Erittäin pienet näytöt — yksi kolumni */
@media (max-width: 340px) {
  .links-bottom {
    grid-template-columns: 1fr;
  }
}

/* Nosta page-headeria ylemmäs tabletilla ja puhelimella */
@media (max-width: 1024px) {
  .page-header {
    margin-top: calc(var(--header-h) - 20px); /* tablet: vähemmän tyhjää yläpuolella */
  }
}

@media (max-width: 767px) {
  .page-header {
    margin-top: calc(var(--header-h) - 160px); /* puhelin: vielä ylemmäs */
  }
}

/* Jos sivun sisältö edelleen peittyy absolutella headerilla, käytä myös tätä:
   (siirtää koko kontentin alaspäin mobiilissa, varmistaa ettei teksti mene headerin alle) */
@media (max-width: 767px) {
  main.container {
    padding-top: calc(var(--header-h) - 10px) !important;
  }
}