:root {
  /* Murrettu, tumma oliivinvihreä (asiakkaan hyväksymä design) */
  --color-primary: #3E4A32;
  --color-primary-dark: #2E3826;
  --color-primary-light: #566349;

  /* Lämmin, "deluxe"-henkinen neutraalipaletti kylmän harmaan (#eee/#ccc/#ddd) tilalle */
  --color-bg: #faf7f1;
  --color-surface: #fffdfa;
  --color-surface-alt: #f2ead9;
  --color-text: #2b2822;
  --color-text-muted: #6f6a5c;
  --color-border: #e6ddc9;

  /* Lämmin terrakotta/pronssi-aksentti pienille versaalilabeille ja korostuksiin */
  --color-accent: #a9663f;
  --color-accent-light: #d8b98f;

  --font-heading: "Cormorant Garamond", serif;
  --font-body: "Hind Siliguri", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 4px 20px rgba(43, 40, 34, 0.08);
  --shadow-md: 0 10px 34px rgba(43, 40, 34, 0.14);

  /* Pieni versaalilabel ("PALVELUT", "HINNASTO" ...) */
  --eyebrow-letter-spacing: 0.14em;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: var(--eyebrow-letter-spacing);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  overflow-y: auto;
  font-family: Arial, sans-serif;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--color-bg);
  color: var(--color-text);
  height: 100vh;
}

/* PALVELUT */

#service-menu {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: space-between;
}

.service-category {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

/* Värit kategorioille - lämmin, yhtenäinen sävymaailma */
.category-45 { background: #e8f0e3; color: #3f5c34; }   /* kevyt, raikas */
.category-60 { background: #f3e8d2; color: #7a5a24; }   /* neutraali, lämmin */
.category-90 { background: #f0ddd2; color: #85402a; }   /* voimakas, myyvä */
.service-category.active { border: 2px solid var(--color-primary); }

#service-list .service-item {
  display: block;
  border-left: 4px solid var(--color-accent-light);
  padding: 16px;
  margin-bottom: 12px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
}

#service-list .service-item.active { display: block; }

#service-list h4 {
  margin-top: 0;
  color: #333;
}

#cookie-info {
  background-color: var(--color-surface-alt);
  padding: 15px;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  text-align: center;
  display: none;
  box-sizing: border-box;
}

#cookie-info .button {
  margin-top: 15px;
}

#header {
  color: white;
  min-height: 60px;
  justify-content: center;
  align-items: center;
  background: var(--color-primary);
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 1.4em;
  position: relative;
}

#mobilemenu {
  background: var(--color-primary);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  position: absolute;
  top: 0;
  width: 100%;
  cursor: pointer;
  z-index: 500;
}

.visible {
  transform: translateY(0) !important;
}

.logo {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: white;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-left: 30px;
  padding-top: 15px;
}

.logo img {
  height: 40px;
  position: relative;
  top: -5px;
}

.gray {
  opacity: 0.5;
  filter: grayscale(100%);
}

#newsarea {
  text-align: center;
  background: var(--color-accent);
}

#newsarea div {
  padding: 10px;
}

#newsarea a:link, #newsarea a:visited {
  color: white;
}

#newsarea div:hover {
  background: white;
  color: var(--color-accent);
}

.newspreviewimage {
  max-width: 200px;
  overflow: hidden;
}

.reviews-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.reviewarea {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    width: 100%;
}

.reviewbox {
    flex: 0 0 calc((100% - 100px) / 6);
    min-width: 0;

    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;

    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.review-nav {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;

    font-size: 34px;
    line-height: 1;

    background: #f3f3f3;
}

/* Kaikki asiakasarviot -sivu: samat .reviewarea .reviewbox -kortit kuin
   etusivun karusellissa (sama koko/ulkoasu), mutta rivittyvät normaalisti
   vierittämisen sijaan. .reviewarea.reviewgrid on spesifisyydeltään
   .reviewarea-sääntöjä tarkempi, joten tämä voittaa niistä riippumatta. */
.reviewarea.reviewgrid {
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-behavior: auto;
}

.review-nav:hover {
    opacity: 0.9;
}

/* Tablet */
@media (max-width: 1200px) {
    .reviewbox {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}

/* Mobile */
@media (max-width: 700px) {
    .reviewbox {
        flex: 0 0 100%;
    }
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}

.hero-split-image {
  background-size: cover;
  background-position: center;
  min-height: 320px;
}

.hero-split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 8%;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.hero-split-content h1 {
  font-size: 2.7em;
  line-height: 1.15;
  margin-bottom: 0;
}

.hero-divider {
  width: 60px;
  height: 0;
  border: none;
  border-top: 2px solid var(--color-accent);
  margin: 22px 0;
}

.hero-split-content p {
  max-width: 34em;
  color: var(--color-text-muted);
}

.hero-cta {
  width: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  margin-top: 12px;
}

.hero-leaf {
  position: absolute;
  right: 6%;
  bottom: 6%;
  width: 90px;
  height: 120px;
  color: var(--color-accent-light);
  opacity: 0.6;
  pointer-events: none;
}

@media (max-width: 899px) {
  .hero-split {
    grid-template-columns: 1fr;
  }
  .hero-split-content {
    padding: 40px 6%;
  }
  .hero-split-content h1 {
    font-size: 2em;
  }
  .hero-leaf {
    display: none;
  }
}

.bannerarea {
  background-color: var(--color-surface-alt);
  color: white;
  height: 460px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}

.bannerarea::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 20, 0, 0) 0%, rgba(0, 20, 0, 0) 30%, rgba(0, 25, 0, 0.55) 75%, rgba(0, 15, 0, 0.78) 100%);
}

.bannertext {
  position: relative;
  z-index: 1;
  padding: 2%;
  width: 60%;
  box-sizing: border-box;
}

.bannertext h1, .bannertext h2, .bannertext h3, .bannertext h4, .bannertext h5, .bannertext h6 {
  margin-bottom: 10px;
  color: white;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.bannertext p {
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

.productarea {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Säädä minimiarvo tarpeen mukaan */
  gap: 10px; /* Väli tuotteiden välillä */
  padding: 10px;
  background-color: #fff;
  background: linear-gradient(#fff, #ddd);
  justify-content: space-between;
}

.alltwelve {
  grid-column: span 12; /* Leveydeltään täysi rivi */
}

.productareaheader, .allproductslink {
  grid-column: span 12; /* Leveydeltään täysi rivi */
  text-align: center;
  padding: 2%;
  color: #888;
}

.productareaheader {
  background: #fff;
}

.allproductslink {
  background: #ddd;
  padding: 1%;
}

.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Jakaa tilan kuvan ja tekstien välillä */
  height: 100%; /* Varmistaa, että tuote täyttää käytettävissä olevan korkeuden */
  background-color: #fff;
  color: #333;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
  box-sizing: border-box; /* Sisältää paddingin tuotteen mittoihin */
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1), 0 2px 5px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  line-height: 1em;
  min-height: 260px;
}

.product.discount::before {
  content: 'Tarjous';
  position: absolute;
  top: 10px;
  right: -30px; /* Sijoita nauha hieman ulkopuolelle kulman saamiseksi */
  background: #FFC107; /* Keltainen väri */
  color: #fff;
  padding: 5px 30px;
  font-size: 14px;
  font-weight: bold;
  transform: rotate(45deg); /* Kallistaa nauhan */
  z-index: 1; /* Varmistaa, että nauha näkyy tuotteen päällä */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Lisää varjon */
}

.product.finished::before {
  content: 'Loppu';
  position: absolute;
  top: 8px;
  right: -28px; /* Sijoita nauha hieman ulkopuolelle kulman saamiseksi */
  background: #aaa; /* Keltainen väri */
  color: #fff;
  padding: 5px 30px;
  font-size: 14px;
  font-weight: bold;
  transform: rotate(45deg); /* Kallistaa nauhan */
  z-index: 1; /* Varmistaa, että nauha näkyy tuotteen päällä */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Lisää varjon */
}

.product:hover {
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(0, 0, 0, 0.3);
}

.product .image {
  justify-content: top;
  align-items: center;
  height: 100%;
  margin-bottom: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1 / 1;
  min-height: 200px;
}

.product img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  max-height: 150px;
  object-fit: cover;
  border-radius: 5px;
}

.product .name {
  padding-top: 15px;
  font-weight: bold;
  padding-bottom: 5px;
}

.product .name, .product .price, .product .amount {
  margin-top: 1px;
}

.product .amount {
  padding-top: 5px;
  font-size: 8pt;
}

#footer {
  color: white;
  background: var(--color-primary-dark);
  font-size: 10pt;
  padding: 50px 6% 0 6%;
}

#footer a:link, #footer a:visited, #footer a:hover {
  color: white;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  padding-bottom: 30px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: white;
  font-size: 1.3em;
  margin-bottom: 12px;
}

.footer-col a, .footer-col div {
  display: block;
  margin-bottom: 8px;
  opacity: 0.9;
}

.footer-brand p {
  opacity: 0.85;
  font-size: 0.95em;
  margin-bottom: 14px;
}

.footer-logo img {
  height: 50px;
  margin-bottom: 14px;
}

.footer-social a {
  font-size: 0.9em;
  text-decoration: underline;
}

.footer-cta-col {
  display: flex;
  align-items: flex-start;
}

.footer-cta {
  width: auto;
  display: inline-block;
  background: var(--color-accent);
}

.footer-cta:hover {
  background: var(--color-accent-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
  padding: 18px 0;
  font-size: 0.85em;
  opacity: 0.8;
}

@media (max-width: 899px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 599px) {
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-top: 0;
  padding-top: 0;
  color: var(--color-text);
  letter-spacing: 0.02em;
  margin-bottom: 15px;
}

h1 {
  font-size: 2.6em;
}

h2 {
  font-size: 2em;
}

a:link, a:hover, a:visited {
  text-decoration: none;
  color: var(--color-primary-dark);
}

#menuicon {
  height: 40px;
  cursor: pointer;
  margin-right: 30px;
  position: absolute;
  top: 10px;
  right: 0px;
}

#shopicon img {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
}

#shopicon {
  width: 40px;
  height: 40px;
  cursor: pointer;
  position: relative;
  position: absolute;
  top: 10px;
  right: 100px;
}

.cart-count {
  position: absolute;
  top: -5px;
  left: 25px;
  background-color: #135ab6;
  border: 2px solid white;
  color: white;
  border-radius: 50%;
  padding: 3px 10px;
  font-size: 14px;
  font-weight: bold;
  display: none; /* Piilotetaan, kun ostoskori on tyhjä */
}

.empty {
  opacity: 0.2;
}

.mobilemenuitem {
  width: 100%;
  padding: 1%;
  box-sizing: border-box;
  text-align: center;
  z-index: 50;
  color: white;
  font-weight: bold;
  border-bottom: 1px solid #333;
  border-top: 1px solid #333;
}

.mobilemenuitem:hover {
  background: rgba(200,200,200,0.3);
}

p {
  margin-bottom: 15px;
}

.smallbutton {
  color: white;
  background: var(--color-primary);
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0px;
  border-radius: var(--radius-sm);
  margin: 1px;
  padding: 4px 12px;
  box-sizing: border-box;
  display: inline-block;
  font-size: 10pt;
  transition: background 0.2s ease, transform 0.2s ease;
}

.smallbutton:hover {
  background: var(--color-primary-dark);
}

button, .button {
  color: white;
  background: var(--color-primary);
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0px;
  border-radius: var(--radius-sm);
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

/* a:link/a:visited/a:hover (yleinen linkkiväri) on spesifisyydeltään .button-luokkaa
   tarkempi, joten napiksi tyylitellyt <a>-linkit perisivät väärän tekstivärin ilman tätä. */
a.button:link, a.button:visited, a.button:hover {
  color: white;
}

.button, .disabledbutton {
  text-align: center;
  font-weight: bold;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0px;
  border-radius: var(--radius-sm);
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 10px;
  font-size: 12pt;
  font-family: var(--font-body);
}

.disabledbutton {
  background-color: #ccc3ac !important;
  color: #948a6f !important;
  cursor: not-allowed !important;
}

form > button {
  margin-top: 20px;
}

.button:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-soft);
}

/* GENERAL PAGE */

#pagecontent {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 4fr) minmax(0, 1fr);
}

#pagecontent h2 {
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
}

#pagecontent img {
  max-width: 100%;
}

.center {
  text-align: center;
}

.left {
  text-align: left;
}

.twocolumns {
  display: grid;
  border-bottom: 1px solid #ddd;
  margin-bottom: 20px;
}

.twocolumns div, .threecolumns div {
  padding: 10px;
}

.threecolumns {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
}

#serviceMenu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
}

.servicelink {
  padding: 10px;
  background: #eee;
}

#serviceMenu .selected {
  background: rgb(0,100,0);
  color: white; 
}

.calendar {
  display: grid;
  gap: 10px;
  padding: 10px;
  margin-bottom: 30px;
}

.day-column {
  padding: 10px;
  text-align: center;
  color: black;
  background: #eee;
}

.day-header {
  font-weight: bold;
  margin-bottom: 5px;
}
.time-slot {
  background: rgb(0,100,0);
  color: white;
  margin: 5px 0;
  padding: 5px;
  cursor: pointer;
}

.reviewbox {
    flex: 0 0 calc((100% - 100px) / 6);
    min-width: 0;

    border-radius: var(--radius);
    padding: 10px;
    margin: 0;
    box-sizing: border-box;

    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.reviewbox:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

iframe {
  max-width: 100%;
}

.reviewtext {
  font-weight: bold;
  padding-top: 5px;
  padding-bottom: 5px;
}

.reviewer { 
  font-style: italic;
}

.hinta {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hinta:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.divheader {
  background: var(--color-primary);
  color: white;
  padding: 10px;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.divcontent {
  font-size: 32pt;
  font-family: var(--font-heading);
  color: var(--color-accent);
  padding: 12px 10px;
}

.divdetail {
  padding-bottom: 12px;
  color: var(--color-text-muted);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

th {
  background: #333;
  color: white;
}

td {
  border-bottom: 1px solid #333;
  vertical-align: top;
}

td:first-child {
  padding-left: 10px;
}

.orderrow:hover {
  background: #135ab6;
  color: white;
}

.square {
  width: 15px;
  height: 15px;
  border: 2px solid #333;
  float: left;
  margin-right: 15px;
  margin-top: 7px;
  border-radius: 3px;
}

.peruttu {background: red;}
.tilattu {background: yellow;}
.maksettu {background: green;}
.lähetetty {background: rgb(0,100,255);}

#chart, #page-views-chart {z-index: 1;}

.paddingleftandright {
  padding-left: 10px;
  padding-right: 10px;
}

.paddingtop {
  padding-top: 30px;
}

.paddingbottom {
  padding-bottom: 30px;
}

.whitepage {
  background: var(--color-surface);
  padding: 4%;
  box-sizing: border-box;
  min-height: 100vh;
  min-width: 0;
}

/* PRODUCT PAGE */

#content {
  width: 60%;
  margin-left: 20%;

  margin-top: 30px;
  box-sizing: border-box;
  padding-bottom: 30px;

  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

#productfacts {
  grid-column: span 3;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;

  width: 100%;
  box-sizing: border-box;
  padding: 4% 4% 0;
  background: #fff;
  border: 10px #e5dba2 solid;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

#productfactsimage {
  margin-bottom: 30px;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

#productfactstext {
  margin-bottom: 30px;
  text-align: center;
  box-sizing: border-box;
}

#productfacts .addtocart {
  margin-top: 30px;
}

/* Kuva-alueen tyylit */

.image {
  width: 100%;
  background-color: #fff;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 10px;
}

.productarea .image img {
  width: 90%;
  margin-left: 5%;
}

#imagecontent {
  grid-template-columns: 1fr;

  align-items: start;
  background-color: #222;
  border: 10px solid #444;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  padding: 5%;
  box-sizing: border-box;
  color: white;
}

#imagecontent h3, #textcontent h3 {
  padding-bottom: 15px;
  color: white;
}

#imagecontent .image:hover, #productfacts .image:hover {
  cursor: zoom-in;
}

.image:hover img {
  transform: scale(1.2);
}

.image2 {
  width: 100%;
  overflow: hidden;
}

.image img {
  width: 100%;
  transition: transform 0.3s ease;
}

.lb-image {
  width: 80vw;
  height: 80vw;
  max-width: 600px;
  max-height: 600px;
  object-fit: cover;
}

textarea {
  resize: none;
  overflow: hidden;
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  box-sizing: border-box;
  font-family: "Hind Siliguri", sans-serif;
  font-size: 12pt;
}

#tuotekooste {
  color: #000;
  background: #fff;
}

#tuotekuvaus {
  color: #fff;
  background: #222;
}

#textcontent {
  box-sizing: border-box;
  padding: 3%;
  background: #222;
  color: white;
  border: 10px solid #444;
  border-radius: 10px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  align-items: start;  
}

#textcontent p, #textcontent ul {
  margin-bottom: 15px;
}

#textcontent ul {
  list-style-image: url('../images/bullet.png');  
}

#textcontent li {
  list-style-type: square;
  margin-left: 20px;
  padding-left: 10px;
}

/* Popup */

/* Popup-tyylit */
#popup, #confirmpopup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 98;
}

#popup-content, #confirmpopup-content {
  background: white;
  padding: 20px;
  border-radius: 5px;
  text-align: center;
}

#message {
  display: none;
}

.book {margin-top: 20px;}


.modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1000;
}

body.modal-open {
  overflow: hidden;
}

#overlay {
  display: none; /* Oletuksena piilotettu */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5); /* Musta tausta 50 % läpinäkyvyydellä */
  z-index: 999; /* Alempi z-index kuin modal, mutta korkea jotta on sisällön päällä */
}

.nextweek, .previousweek {
  cursor: pointer;
}

.nextweek {
  float: right;
}

#modal_booking {
  max-width: 100%;
  box-sizing: border-box;
}

#modal_booking label {
  display: inline-block;
  width: 200px;
}

#modal_booking input, #modal_booking select {
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
}
#modal_booking textarea {
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  min-height: 50px;
}

.modal-content input {
  min-width: 80%;
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Ostoskorityylit */
#productlist {
  display: grid;
  grid-template-columns: 1fr 10fr 1fr;
  margin-bottom: 15px;
}

.shoppingcartproduct {
  text-align: center;
  border: 1px solid #ccc;
  padding: 2%;
  box-sizing: border-box;
  margin-bottom: 10px;
  grid-column: span 10;
  position: relative;
  min-height: 150px;
}

.shoppingcartproduct h3 {
  padding-bottom: 10px;
}

#loading {
  text-align: center;
}

#loading img {
  width: 20%;
}

.shoppingcartimage {
  position: absolute;
  left: 10px;
  top: 40px;
  width: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;  
  overflow: hidden;
}

.shoppingcartimage img {
  width: 100%;
}

.noselect {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.plus, .minus {
  width: 80px;
  color: white;
  text-align: center;
  margin-bottom: 10px;
  font-size: 3em;
  font-weight: bold;
  padding-top: 15px;
}

.minus {
  background: red;
  border-radius: 20px 0px 0px 20px;
}

.minus:hover {
  cursor: pointer;
  background: rgb(200,0,0);
}

.plus {
  background: green;
  border-radius: 0px 20px 20px 0px;
}

.plus:hover {
  cursor: pointer;
  background: rgb(0,200,0);
}

.clearsshoppingcart {
  cursor: pointer;
  grid-column: span 12;
}

#payerinfoform {
  grid-column: span 12;
}

#payerinfo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 2%;
  border: 1px solid #ccc;
  margin-bottom: 15px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: #eee;
}

#payerinfo label {
  box-sizing: border-box;
  display: block;
  margin-right: 20px;
  font-weight: bold;
}

#payerinfo div {
  border-bottom: 1px solid #ddd;
}

#payerinfo input {
  border: 1px solid #ddd;
}

#payerinfo input[type="text"], #payerinfo input[type="email"], #payerinfo input[type="tel"], #payerinfo select {
  width: 100%;
  box-sizing: border-box;
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  padding: 8px;
  border-radius: 3px;
  position: relative;
  top: 0px;
}

#payerinfo input[type="radio"] {
  padding-top: 5px;
}

#shipmentmethod, #paymentmethod {
  position: relative;
  padding-top: 5px;
}

#submitOrderButton {
  grid-column: span 2;
  border: 2px solid #fff;
}

#pagetextarea {
  background: white;
  width: 100%;
  padding: 20px 2%;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.2);
  padding-bottom: 100px;
}

/* Hallinta */

.tilaus {
  background: #eee;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.2), 0 5px 10px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  padding: 30px;
  display: inline-block;
}

.changeshowonfrontpage, .changeproductvisibility {
  cursor: pointer;
}

.graybg {
  background: #ddd;
}

/* RESPONSIVE STYLES */
@media only screen and (min-width: 1201px) {
  .twocolumns {
    grid-template-columns: 2fr 5fr;
  }
  .threecolumns {
    grid-template-columns: 1fr 1fr 1fr;  
  }
  .reviewarea {
    grid-template-columns: 1fr 1fr 1fr;  
  }
  .calendar {
    grid-template-columns: repeat(7, 1fr);
  }
  .reviewstars {
    font-size: 20pt;
    letter-spacing: 5px;
  }
  .modal {
    min-width: 500px;
  } 
}

@media only screen and (min-width: 900px) and (max-width: 1200px) {
  .bannertext {
    width: 70%;
  }
  .twocolumns {
    grid-template-columns: 1fr 4fr;
  }
  .threecolumns {
    grid-template-columns: 1fr 1fr 1fr;  
  }
  .reviewarea {
    grid-template-columns: 1fr 1fr;  
  }
  .calendar {
    grid-template-columns: repeat(7, 1fr);
  }
  .reviewstars {
    font-size: 20pt;
    letter-spacing: 5px;
  }
  .modal {
    min-width: 500px;
  } 
}

@media only screen and (max-width: 899px) {
  .bannertext {
    width: 90%;
  }
  .mobilemenuitem {
    padding: 2%;
  }
  #content {
    width: 100%;
    margin: 0;
    margin-top: 30px;
    grid-template-columns: 1fr;
    display: block;
  }
  #productfacts {
    grid-template-columns: 1fr;
  }
  #productfactsimage {
    width: 70%;
    margin: 0 auto;
  }
  #imagecontent .headertext, .addimage {
    grid-column: span 2;
  }
  #image-gallery {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr 1fr;
  }
  #image-gallery img {
    aspect-ratio: 1 / 1;
  }
  #textcontent {
    margin-top: 15px;
  }
  #pagecontent {
    grid-template-columns: 1fr;
  }
  .whitepage {
    padding: 2%;
  }
  .noshow {
    display: none;
  }
  #payerinfo {
    display: grid;
    grid-template-columns: 1fr;
  }
  .shoppingcartimage {
    display: none;
  }
  .productarea {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .twocolumns {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .threecolumns {
    grid-template-columns: 1fr 1fr;  
  }
  .reviewarea {
    grid-template-columns: 1fr 1fr;  
  }
  .calendar {
    grid-template-columns: 1fr;
  }
  .reviewstars {
    font-size: 14pt;
    letter-spacing: 5px;
  }
  .bannertext h1, .bannertext h2, .bannertext h3, .bannertext h4, .bannertext h5, .bannertext h6 {
    font-size: 14pt;
  }  
  #modal_booking input {
    max-width: 100%;
    box-sizing: border-box;
  }
  .modal {
    min-width: 400px;
  } 
}

/* Asiakasarvioiden responsiiviset ylikirjoitukset */
@media (max-width: 1200px) {
  .reviewbox {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

@media (max-width: 700px) {
  .reviews-wrapper {
    gap: 5px;
  }

  .reviewarea {
    gap: 10px;
  }

  .reviewbox {
    flex: 0 0 100%;
    min-width: 0;
  }

  .review-nav {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    font-size: 26px;
    padding: 0;
  }
}

/* Asiakasarviot - lopullinen karusellikorjaus */

.reviews-wrapper {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.reviewarea {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    width: 100%;

    gap: 20px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* align-items: stretch; */
    align-items: flex-start;
}

/* 3 korttia tietokoneella */

.reviewarea .reviewbox {
    display: flex;
    flex-direction: column;

    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
    width: auto;
    height: auto;
    margin: 0;

    padding: 20px;
    box-sizing: border-box;
}

/* Tähdet aina yhdelle riville */
.reviewarea .reviewstars {
    white-space: nowrap;
    letter-spacing: 2px;
    font-size: 20pt;
}

/* Tablet: 2 korttia */
@media (max-width: 1200px) {
    .reviewarea .reviewbox {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

/* Mobiili: 1 kortti */
@media (max-width: 700px) {
    .reviews-wrapper {
        gap: 5px;
    }

    .reviewarea {
        gap: 10px;
    }

    .reviewarea .reviewbox {
        flex: 0 0 100%;
    }

    .reviewarea .reviewstars {
        font-size: 18pt;
        letter-spacing: 1px;
    }
}

.reviews-wrapper {
    position: relative;
    display: flex;
    align-items: center;

    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 12px;
    overflow: hidden;
}

.review-nav {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;

    padding: 0;
    margin: 0;

    align-self: center;

    border: 0;
    border-radius: 50%;
    cursor: pointer;

    font-size: 34px;
    line-height: 48px;

    background: #f3f3f3;
}

/* ===== Varauspromo-palkki ===== */
.bookingpromo {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--color-surface-alt);
  border-radius: var(--radius);
  padding: 24px 30px;
  margin: 30px 0;
}

.bookingpromo-icon {
  font-size: 2.2em;
  flex: 0 0 auto;
}

.bookingpromo-text {
  flex: 1 1 auto;
}

.bookingpromo-text h3 {
  margin-bottom: 4px;
}

.bookingpromo-text p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.bookingpromo-btn {
  width: auto;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  margin-bottom: 0;
}

@media (max-width: 699px) {
  .bookingpromo {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Varauskortti ===== */
.bookingcard {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 40px 5%;
  margin: 40px 0;
  scroll-margin-top: 20px;
}

.bookingstep {
  color: var(--color-text-muted);
}

.weeknav {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
}

#serviceMenu {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.servicelink {
  padding: 10px 18px;
  background: var(--color-surface-alt);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

#serviceMenu .selected {
  background: var(--color-primary);
  color: white;
}

.calendar {
  display: grid;
  gap: 10px;
  padding: 10px 0;
  margin-bottom: 10px;
}

.day-column {
  padding: 12px;
  text-align: center;
  color: var(--color-text);
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
}

.day-header {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-primary-dark);
}

.time-slot {
  background: var(--color-surface);
  border: 1px solid var(--color-primary);
  color: var(--color-primary-dark);
  margin: 6px 0;
  padding: 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease;
}

.time-slot:hover {
  background: var(--color-primary);
  color: white;
}

/* ===== Palvelut-osio ===== */
#services-section {
  padding: 20px 0;
}

#service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== Split-osiot (hinnasto, sijainti) ===== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 60px 0;
}

.split-content h2 {
  margin-bottom: 16px;
}

.split-image, .split-map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  box-shadow: var(--shadow-soft);
}

.split-image {
  background-size: cover;
  background-position: center;
}

.split-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  border: 0;
}

.pricelist, .infolist {
  list-style: none;
  margin-top: 20px;
}

.pricelist li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 1.3em;
}

.pricelist li span:last-child {
  color: var(--color-accent);
  font-weight: 600;
}

.infolist li {
  padding: 8px 0;
}

@media (max-width: 899px) {
  .split-section {
    grid-template-columns: 1fr;
  }
}

/* ===== Asiakasarviot-osio ===== */
.reviews-section {
  margin: 60px 0;
}

.review-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.review-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--color-border);
  cursor: pointer;
}

.review-dot.active {
  background: var(--color-primary);
}

/* ===== FAQ-osio ===== */
.faq-section {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  margin: 60px 0;
}

.faq-intro {
  position: relative;
}

.faq-leaf {
  position: static;
  margin-top: 20px;
  opacity: 0.5;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: none;
  border: 0;
  text-transform: none;
  letter-spacing: normal;
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05em;
  text-align: left;
  padding: 16px 0;
  cursor: pointer;
}

.faq-icon {
  color: var(--color-accent);
  font-size: 1.3em;
  flex: 0 0 auto;
  margin-left: 12px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: var(--color-text-muted);
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 16px;
}

@media (max-width: 899px) {
  .faq-section {
    grid-template-columns: 1fr;
  }
}