@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: radial-gradient(ellipse at bottom, #06130d 0%, #1b3a2b 100%); /* SIVUN TAUSTAVÄRIN GRADIENTTI */
  color: #eedfb6;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  min-height: 100vh;
  background-attachment: fixed;
  background-size: cover;
}

a[href^="mailto:"] {
  color: #00d0ff;   /* sama turkoosi kuin muualla */
  text-decoration: none;  /* halutessasi poistaa alleviivauksen */
  transition: color 0.2s ease;
}

a[href^="mailto:"]:hover {
  color: #ffffff;  /* vaalea hover-efekti */
}

a {
  color: #c80000;
}
a:hover {
  color: #a00000;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* logo-otsikko */
.header-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.header-logo img {
  max-width: 200px;
  width: 80%;
  height: auto;
  display: inline-block;
}

.lista {
  text-align: left;
}

/* tuotteet rinnakkain, allekkain pienillä näytöillä */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

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

.product {
  position: relative; /* tarvitaan pseudoelementille */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.05);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

/* Pseudoelementti isoa kirjainta varten */
.product::before {
  content: attr(data-label); /* Haetaan kirjain HTML:stä attribuutista */
  position: absolute;
  top: -20px; /* nostettu 15px ylös */
  left: -12px; /* vähän laatikon vasemmalla puolella */
  font-size: 2.5rem;
  font-weight: bold;
  font-family: 'Audiowide', sans-serif;
  color: #00d0ff;
  text-shadow: 0 0 8px rgba(0, 208, 255, 0.6);
  z-index: 2;
}

.product:hover {
  border-color: #00d0ff;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
  transform: translateY(-4px);
}

.product img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.product-option img {
  height: 300px;
  width: auto;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 8px; /* valinnainen tyylikeino */
}

.product h2 {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-family: 'Audiowide', sans-serif;
  color: #cba135;
}

.product p {
  color: #c7d7ff;
  font-size: 0.95rem;
  line-height: 1.4;
}

label {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  color: #b7caff;
  margin-top: 0.8rem;
}

input[type="radio"] {
  margin-top: 0.5rem;
  transform: scale(1.3);
  accent-color: #00d0ff;
}

.select-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid #cba135;
  border-radius: 6px;
  color: #cba135;
  font-family: 'Audiowide', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
  user-select: none;
}

/* Hover */
.select-button:hover {
  background-color: rgba(0, 184, 255, 0.15);
  color: #cba135;
}

/* Valittu / painettu tila */
.select-button.selected {
  background-color: rgba(0, 184, 255, 0.35);
  color: #cba135;
  transform: scale(0.97);
  border-color: #cba135;
}

}


/* Tämä koskee vain tuotevalintanappeja */
.product button {
  all: unset;
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid #eedfb6; 
  border-radius: 6px;
  color: #cba135;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.product button:hover {
  background-color: rgba(0, 184, 255, 0.15);
  color: #cba135;
  border-color: #eedfb6;
}

.product button:focus {
  outline: none;
}

/* korjattu napin glow */
button {
  position: relative;
  display: block;
  margin: 2rem auto;
  padding: 0.9rem 1.8rem;
  border: 1px solid #cba135; /* SIIRRY SYÖTTÄMÄÄN OSOITETIEDOT -NAPIN COLOR */
  background: rgba(55, 101, 75, 0.1);
  color: #cba135;
  font-size: 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  font-family: 'Bebas Neue', sans-serif; /* SIIRRY SYÖTTÄMÄÄN OSOITETIEDOT -NAPIN FONTTI */
  letter-spacing: 2px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: rgba(55, 101, 75, 0.25);
  color: #fff;
  transform: scale(1.03);
  border-color: #eedfb6;
}

/* Neon-kehän animaatio */
button::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  background: linear-gradient(90deg, transparent, #cba135, transparent) no-repeat;
  background-size: 200% 100%;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

button:hover::before {
  opacity: 1;
  animation: borderMove 1.5s linear infinite;
}

/* Viivan liike napin reunalla */
@keyframes borderMove {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Poistaa fokuksen sinisen korostuksen */
button:focus {
  outline: none;
}




form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label input,
label textarea {
  margin-top: 0.4rem;
  padding: 0.6rem;
  border: 1px solid rgba(0, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 1rem;
  background: rgba(0, 0, 20, 0.6);
  color: #e0e6ff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

label input:focus,
label textarea:focus {
  border-color: #00d0ff;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
  outline: none;
}

textarea {
  resize: vertical;
}

.hidden {
  display: none;
}

#summary-section {
  margin-top: 2rem;
}

#summary p {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #d0e3ff;
}

p {
  line-height: 1.5;
}

/* --- Piilota elementit aluksi --- */
.hidden {
  display: none !important;
}

/* Container, joka pitää osoitetietolaatikot vierekkäin */
#address-section {
  display: flex;
  flex-wrap: wrap;   /* pienillä näytöillä laatikot allekkain */
  gap: 1.5rem;       /* tilaa laatikoiden välillä */
  margin-top: 1.5rem;
}

#address-section h2 {
  width: 100%;      /* pakottaa otsikon omalle riville */
  margin-bottom: 1.5rem; /* tyhjä tila otsikon ja laatikoiden väliin */
  text-align: center;
}

/* Jokainen laatikko */
.address-option {
  flex: 1 1 300px;   /* skaalautuu, min 300px leveys */
  max-width: 48%;    /* kaksi laatikkoa vierekkäin leveällä näytöllä */
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 200, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 255, 255, 0.05);
  padding: 1rem;
  text-align: center;
  transition: all 0.3s ease;
}

/* Suuret kirjaimet A/B vasemmassa yläkulmassa */
.address-option::before {
  content: attr(data-label);
  position: absolute;
  top: -20px;
  left: -12px;
  font-size: 2.5rem;
  font-weight: bold;
  font-family: 'Bebas Neue', sans-serif;
  color: #00d0ff;
  text-shadow: 0 0 8px rgba(0, 208, 255, 0.6);
  z-index: 2;
}

/* Hover-efekti */
.address-option:hover {
  box-shadow: 0 0 15px rgba(0, 208, 255, 0.3);
  transform: translateY(-2px);
  transition: all 0.2s ease;
}

/* Kun laatikko valitaan (selected) */
.address-option .select-button.selected {
  background-color: rgba(0, 184, 255, 0.35);
  color: #cba135;
  transform: scale(0.97);
  border-color: #cba135;
  box-shadow: 0 0 15px rgba(203, 161, 53, 0.5);
}

/* Kenttäalue */
.address-fields {
  margin-top: 1rem;
  text-align: left;
}

/* Piilota kentät aluksi */
.address-fields.hidden {
  display: none;
}

/* Valintanappi tyyli kuten tuotevalinnoissa */
.address-option .select-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid #cba135;  /* OSOITTEEN VALINTANAPIN BORDER */
  border-radius: 6px;
  color: #cba135; /* OSOITTEEN VALINTANAPIN TEKSTIN VÄRI */
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 1.5px; /* OSOITTEEN VALINTANAPIN TEKSTIN FONTTI */
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.address-option .select-button:hover {
  background-color: rgba(55, 101, 75, 0.15); /* TUOTTEEN VALINTANAPIN TAUSTAN VÄRI KUN HOVER */
  color: #fff;
}
.address-option .select-button.selected {
  background-color: rgba(238, 223, 182, 0.35); /* TUOTTEEN VALINTANAPIN TAUSTAN VÄRI KUN VALITTUNA */
  color: #fff;
  transform: scale(0.97);
  border-color: #eedfb6; /* TUOTTEEN VALINTANAPIN BORDER VÄRI KUN VALITTUNA */
  box-shadow: 0 0 25px rgba(203, 161, 53, 0.6); /* TUOTTEEN VALINTANAPIN OUTER GLOW VÄRI KUN VALITTUNA */
}


/* Pienemmillä näytöillä kaksi laatikkoa allekkain */
@media (max-width: 700px) {
  .address-option {
    max-width: 100%;
  }
}

/* Container tuotteille */
#product-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Jokainen tuotelaatikko */
.product-option {
  position: relative; /* tarvitaan pseudoelementille */
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(203, 161, 53, 0.2); /* TUOTTEEN TAUSTALAATIKON BORDER */
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(203, 161, 53, 0.05);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
}

/* Iso kirjain vasempaan yläkulmaan */
.product-option::before {
  content: attr(data-label);
  position: absolute;
  top: -20px;
  left: -12px;
  font-size: 2.5rem;
  font-weight: bold;
  font-family: 'Bebas Neue', sans-serif;
  color: #00d0ff;
  text-shadow: 0 0 8px rgba(0, 208, 255, 0.6);
  z-index: 2;
}

.thankyou-section {
  text-align: center;
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05); /* sama kuin tuote- ja osoitelaatikot */
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(203, 161, 53, 0.3); /* samanlainen neon-varjo kuin myyntisivulla */
}

.thankyou-section h2 {
  margin-bottom: 1rem;
  color: #cba135; /* kuten myyntisivun otsikot */
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1.5px;
}

.thankyou-section button {
  margin-top: 2rem;
  border: 1px solid #cba135;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  color: #cba135;
  background: rgba(55, 101, 75, 0.5);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.35rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.thankyou-section button:hover {
  background-color: rgba(55, 101, 75, 0.5);
  color: #fff;
  transform: scale(1.03);
  border-color: #cba135;
}


/* Tuotteen valintanappi */
.product-option .select-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid #cba135;  /* TUOTTEEN VALINTANAPIN BORDER */
  border-radius: 6px;
  color: #cba135; /* TUOTTEEN VALINTANAPIN TEKSTIN VÄRI */
  font-family: 'Bebas Neue', sans-serif; /* TUOTTEEN VALINTANAPIN TEKSTIN FONTTI */
  font-size: 1.35rem;
  letter-spacing: 1px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}

.product-option .select-button:hover {
  background-color: rgba(55, 101, 75, 0.15); /* TUOTTEEN VALINTANAPIN TAUSTAN VÄRI KUN HOVER */
  color: #fff;
}

.product-option .select-button.selected {
  background-color: rgba(238, 223, 182, 0.35); /* TUOTTEEN VALINTANAPIN TAUSTAN VÄRI KUN VALITTUNA */
  color: #fff;
  transform: scale(0.97);
  border-color: #cba135; /* TUOTTEEN VALINTANAPIN BORDER VÄRI KUN VALITTUNA */
  box-shadow: 0 0 25px rgba(203, 161, 53, 0.6); /* TUOTTEEN VALINTANAPIN OUTER GLOW VÄRI KUN VALITTUNA */
}

/* Hover-efekti laatikolle */
.product-option:hover {
  box-shadow: 0 0 20px rgba(203, 161, 53, 0.9); /* TUOTTEEN TAUSTALAATIKON OUTER GLOW VÄRI KUN VALITTUNA */
  transform: translateY(-3px);
  transition: all 0.2s ease;
}

/* Pienemmillä näytöillä allekkain */
@media (max-width: 700px) {
  .product-option {
    max-width: 100%;
  }
  
 .soldout-badge {
  background: #b30000;
  color: white;
  font-weight: bold;
  padding: 0.4rem 0.8rem;
  display: inline-block;
  border-radius: 6px;
  margin-bottom: 0.8rem;
  font-size: 1.1rem;
}

.select-button.disabled {
  background: #999 !important;
  cursor: pointer;
  color: white;
}
.select-button.disabled:hover {
  background: #888 !important;
} 

.notify-box {
  background: #eef7ff;
  border-radius: 10px;
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
  
}
