/* style_header_and_cart.css — KOKO VALMIS VERSIO
   Muokattu versio: yhdistetty duplikaatit, lisätty muuttujat,
   korjattu ostoskorin palkkien keskitys ja responsiivisuus.
*/

/* Väri- ja yleismuuttujat */
:root{
  --bg-overlay: rgba(255,255,255,0.85);
  --panel-bg: rgba(255,255,255,0.95);
  --text: #5b4a42;
  --accent: #a67c68;
  --accent-dark: #8b6554;
  --muted-border: #e6dede;
  --input-border: #d6ccc2;
  --shadow-weak: rgba(0,0,0,0.05);
  --shadow: rgba(0,0,0,0.1);
  --card-radius: 15px;
}

/* --- Yleisasetukset ja taustakuva --- */
* { box-sizing: border-box; }



/* --- Header ja navigaatio --- */
header { position: relative; z-index: 100; }

.nav-container {
  background-color: #F4F4F4;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 40px;
  border-bottom: 1px solid var(--muted-border);
  backdrop-filter: blur(5px);
  position: relative;
}

/* Vasemman ja oikean reunan navit */
.nav-left, .nav-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-left { left: 40px; }
.nav-right { right: 40px; }

/* Navin */
.nav-left a {
  margin: 0 10px;
  text-decoration: none;
  font-weight: 600;
  color: black;
}
.nav-left a:hover { color: var(--accent); }

/* Logo */
.logo { flex-shrink: 0; z-index: 2; }
.logo img {
  height: 60px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
  border-radius: 8px;
  padding: 5px;
}
.logo img:hover { transform: scale(1.05); }

/* Yleiset toiminapithteet */
.cart-btn, .menu-btn, .close-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text);
  transition: transform 0.2s, color 0.2s;
}
.cart-btn:hover, .menu-btn:hover, .close-btn:hover {
  transform: scale(1.15);
  color: var(--accent);
}

/* Sulkunappi (yleinen) */
.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 3002;
}

/* Menu-nappi pysyy aina päällä */
.menu-btn { position: relative; z-index: 4000; color: #611d28;}

/* --- Hero --- */
.hero {
  text-align: center;
  background-color: var(--bg-overlay);
  margin: 60px auto;
  padding: 80px 20px;
  max-width: 1000px;
  border-radius: 20px;
  box-shadow: 0 3px 10px var(--shadow);
}
.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  margin-bottom: 15px;
}
.hero button {
  background-color: #611d28;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 15px;
  transition: 0.3s;
}
.hero button:hover { background-color: var(--accent-dark); }

/* --- Kategoriakortit --- */
.category-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 1000px;
  margin: 60px auto 40px;
  padding: 0 20px;
}
.category-cards .card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 3px 10px var(--shadow);
  text-decoration: none;
  color: var(--text);
  aspect-ratio: 1.2 / 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-cards .card:hover { transform: translateY(-5px); box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.category-cards .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
  transition: filter 0.3s ease;
}
.category-cards .card:hover img { filter: brightness(1); }
.category-cards .card span {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #611d28;
  background: rgba(255,255,255,0.8);
  padding: 6px 0;
}

/* --- Tuotteet --- */
.products {
  background-color: var(--bg-overlay);
  text-align: center;
  padding: 60px 20px;
  margin: 0 auto 60px;
  max-width: 1000px;
  border-radius: 20px;
  box-shadow: 0 2px 8px var(--shadow);
}
.products h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 40px;
}
.product-grid {
  flex-wrap: wrap;  
  display: grid;
  justify-content: center; /* keskittää vaakasuunnassa */
  gap: 20px;   
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.product-card {
  width: 300px;
  background-color: #fff;
  border-radius: 15px;
  padding: 15px;
  box-shadow: 0 2px 5px var(--shadow);
  transition: transform 0.2s ease;
  text-align: left;
}
.product-card:hover { transform: translateY(-5px); }
.product-card img { width: 100%; border-radius: 10px; }
.product-card .name { font-weight: bold; font-size: 130%; margin: 10px 0 5px; color: #611d28; }
.view-all {
  background-color: #611d28;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 1rem;
  margin-top: 40px;
  cursor: pointer;
}
.view-all:hover { background-color: var(--accent-dark); }

footer {
  background-color: var(--bg-overlay);
  text-align: center;
  padding: 25px;
  border-top: 2px solid var(--muted-border);
  backdrop-filter: blur(5px);
  font-size: 0.9rem;
  margin-top: auto;
}

/* --- Category hero --- */
.category-hero {
  text-align: center;
  margin: 60px auto;
  max-width: 1000px;
  background: var(--bg-overlay);
  border-radius: 20px;
  box-shadow: 0 3px 10px var(--shadow);
  padding: 60px 20px;
}
.category-hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #111435;
  margin-bottom: 25px;
}
.category-hero p {
  font-size: 1.1rem;
  color: #611d28;
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Suodatuspalkki --- */
.filter-bar {
  background: var(--bg-overlay);
  max-width: 1000px;
  margin: 30px auto;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 2px 6px var(--shadow);
}
.filters {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.filters select,
.filters input[type="text"] {
  padding: 10px 15px;
  border: 1px solid var(--input-border);
  border-radius: 10px;
  background: #fff;
  color: black;
  flex: 1;
  transition: border 0.2s ease;
}
.filters select:hover,
.filters input[type="text"]:focus {
  border-color: var(--accent);
  outline: none;
}

/* Tyhjennä-nappi */
#resetBtn {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
#resetBtn:hover { background-color: var(--accent-dark); transform: scale(1.05); }
#resetBtn:active { transform: scale(0.95); }
#resetBtn.hidden { display: none; }

/* --- BURGER MENU & OVERLAY --- */
.burger-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 3000;
  pointer-events: none;
}
.burger-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.burger-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  background: #ffffff;
  color: var(--text);
  box-shadow: -4px 0 15px rgba(0,0,0,0.15);
  border-left: 2px solid var(--muted-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 20px;
  transition: right 0.35s ease;
  z-index: 3500;
}
.burger-menu.open { right: 0; }

.burger-menu h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: #611d28;
  margin: 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: white;
}
.burger-menu hr {
  width: 80%;
  border: none;
  border-top: 1px solid var(--muted-border);
  margin: 15px 0;
}
.burger-menu a {
  display: block;
  text-decoration: none;
  color: #0b1220;
  font-weight: 600;
  margin: 10px 0;
  font-size: 1.05rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.burger-menu a:hover { color: var(--accent); transform: translateX(3px); }

/* Poista blurit burgerin sisältä */
.burger-menu, .burger-menu * {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 1 !important;
}

/* --- Contact / About / Team -osiot --- */
.contact-card {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px auto;
  padding: 20px;
}
.contact-box {
  background-color: var(--panel-bg);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 2px 10px var(--shadow);
  max-width: 700px;
  width: 100%;
  text-align: left;
}
.contact-box h3 {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 1.8rem;
  text-align: center;
  color: #111435;
}
.contact-box p { margin: 8px 0; line-height: 1.6; color: #611d28; }
.contact-box a { color: #611d28; text-decoration: none; }
.contact-box a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
}
.contact-form button {
  background-color: #8d5d67;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}
.contact-form button:hover { background-color: var(--accent-dark); }
.contact-box hr { border: none; border-top: 1px solid var(--muted-border); margin: 25px 0; }

/* About */
.about-section {
  max-width: 900px;
  margin: 80px auto;
  background: rgba(255,255,255,0.92);
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.about-section::before, .about-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}
.about-section::before {
  top: -50px; left: -50px;
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(230,203,193,0.2) 0%, transparent 70%);
}
.about-section::after {
  bottom: -40px; right: -40px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(166,124,104,0.2) 0%, transparent 70%);
}
.about-section h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: #111435; margin-bottom: 20px; z-index:1; position:relative; }
.about-section p { font-size: 1.05rem; line-height: 1.8; color: #611d28; margin-bottom: 25px; z-index:1; position:relative; }
.about-highlight {
  background: rgba(246,232,228,0.9);
  border-left: 5px solid #611d28;
  border-radius: 12px;
  padding: 25px 30px;
  margin-top: 40px;
  font-style: italic;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.about-img {
  width: 180px; height: 180px; object-fit: cover; border-radius: 50%;
  border: 3px solid var(--accent); margin-bottom: 25px; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.about-section .heart { color: var(--accent); font-size: 1.5rem; margin-top: 10px; }

/* Team */
.team-section {
  max-width: 1000px;
  margin: 100px auto;
  text-align: center;
  background: var(--panel-bg);
  border-radius: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 60px 40px;
}
.team-section h2 { font-family: 'Playfair Display', serif; color: #611d28; font-size: 2rem; margin-bottom: 40px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; justify-items: center; }
.team-card {
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  padding: 30px 20px;
  max-width: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0,0,0,0.12); }
.team-img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); margin-bottom: 15px; }
.team-card h3 { font-family: 'Playfair Display', serif; color: var(--text); font-size: 1.3rem; margin-bottom: 10px; }
.team-card p { font-size: 0.95rem; line-height: 1.7; color: #611d28; margin: 0; }

/* korvaa alkuperäisen .cart-section -lohkon korkeusrivin tällä */
.cart-section {
  width: 100%;
  /* Poistettu height: 200px; jotta kortti ei jää tyhjälle alueelle */
  max-width: 900px;
  margin: 25px auto;
  padding: 20px 20px;
  background: var(--panel-bg);
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  /* vaihtoehto: jos haluat vähimmäiskorkeuden
  min-height: 120px;
  */
}
/* Otsikko */
.cart-section h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  font-size: 2.2rem;
  margin-bottom: 30px;
}

/* Kontti kaikille tuotteille */
.cart-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center; /* tärkeä: keskittää lapset (.cart-item) */
  gap: 25px;
  padding: 0;
  margin: 0;
}

/* Yksittäinen rivi/palkki */
.cart-item {
  width: 90%;
  max-width: 900px;
  background: #fff;
  border-radius: var(--card-radius);
  padding: 20px 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease;
  margin: 0 auto; /* varmistaa keskityksen */
}
.cart-item:hover { transform: translateY(-3px); }

.cart-item img {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Tuotetiedot */
.item-info {
  flex: 1;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.item-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--text);
  margin: 0 0 5px 0;
}
.item-info .price {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}

/* Määrän säätö */
.quantity {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
.qty-btn:hover { background: var(--accent-dark); }
.quantity input {
  width: 40px;
  text-align: center;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  padding: 5px;
}

/* Poista-nappi */
.remove-btn {
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.remove-btn:hover { background-color: var(--accent-dark); }

/* Yhteenveto laatikko */
.cart-summary {
  width: 100%;
  max-width: 900px;
  margin: 30px auto 60px;
  background: var(--panel-bg);
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  padding: 30px 40px;
  text-align: right;
}
.cart-summary h3 {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 20px;
  text-align: center;
}
.cart-summary p, .cart-summary h4 {
  font-size: 1rem;
  margin: 8px 0;
  color: var(--text);
}
.cart-summary h4 {
  border-top: 1px solid #d9cfc7;
  padding-top: 10px;
  font-weight: 600;
}

/* Kassalle-nappi */
.checkout-btn {
  display: block;
  width: 80%;
  max-width: 250px;
  margin: 25px auto 0;
  background-color: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 0;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
}
.checkout-btn:hover { background-color: var(--accent-dark); }

/* Ostoskorin ponnahdusilmoitus */
.cart-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: var(--accent);
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-15px);
  transition: all 0.4s ease;
  z-index: 4000;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
}
.cart-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* --- Responsiivisuus --- */
@media (max-width: 1024px) {
  .hero { padding: 60px 18px; max-width: 900px; }
  .category-cards, .products { padding: 0 18px; }
  .cart-item { padding: 18px 20px; width: 94%; }
}

@media (max-width: 768px) {
  .nav-left, .nav-right { display: none; } /* burger käytössä */
  .hero { padding: 50px 15px; margin: 40px 15px; }
  .cart-item { flex-direction: column; align-items: flex-start; padding: 15px; gap: 12px; }
  .item-info { margin: 10px 0; }
  .cart-summary { text-align: center; margin: 40px auto 0; }
  .filters { justify-content: center; }
  .logo img { height: 50px; }
}

@media (max-width: 768px) {
  .burger-icon {
    display: block; /* Show burger on mobile */
  }
  .desktop-menu {
    display: none; /* Hide desktop menu on mobile */
  }
}

@media (max-width: 420px) {
  .logo img { height: 44px; }
  .cart-item img { width: 80px; height: 80px; }
  .cart-item { padding: 12px; }
  .checkout-btn { width: 90%; }
}

/* === Potentiaaliset ylikirjoitukset korjataan === */
/* Jos jossain käytetty inline-tyyliä tai vanhaa luokkaa, laajennetaan spesifisyyttä */
.cart-container .cart-item { margin-left: auto; margin-right: auto; }

/* --- Loppu of file --- */

/* Piilottaa automaattisesti JS:n lisäämän tyhjä-viestin ja estää "kapean palkin" näkymisen */
#cart-items > p,
.cart-container > p {
  display: none; /* piilottaa suoraan kartan sisälle lisätyn <p> -elementin */
}

/* Jos #cart-summary on tyhjä, piilotetaan se */
#cart-summary:empty {
  display: none;
}


/* ================================================================
   LISÄTTY: cart- / page -tyylit, jotka aiemmin olivat style.css:
   Näitä lisään loppuun jotta voit helposti hyödyntää samaa ulkoasua
   kuin aiemmassa demo-tyylissä (keskitetyt kortit, popup, responsiivi).
   Jos jotkin selektorit ylikirjoittavat ylläolevia, jälkimmäinen
   määritelmä voittaa (tämä lohko on tarkoituksella lopussa).
   ================================================================ */

/* Keskitetty pääalue (main ja header-tyylit, jos niitä ei ole) */
main{
  padding:40px 20px 80px;
  display:flex;
  justify-content:center;
}

/* Korostettu otsikko-laatikko (suuri keskellä) */
.cart-section > h1,
.cart-section > h2.hero-title {
  background: var(--panel-bg);
  margin: 0 auto;
  width: calc(100% - 160px);
  max-width: 900px;
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  font-size: 2.2rem;
  box-shadow: 0 6px 18px var(--shadow);
}

/* Varmistetaan että cart-container näyttää lapset oikein */
.cart-container{
  width:100%;
  display:flex;
  flex-direction:column;
  gap:22px;
  align-items:center;
}

/* Yksittäinen tuoterivi (vaihtoehtoinen tyylitys, hieman erilainen kuin edellä) */
.cart-item{
  width:90%;
  max-width:900px;
  background:#fff;
  border-radius:14px;
  padding:20px 24px;
  display:flex;
  gap:20px;
  align-items:center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}
.cart-item img{
  width:90px; height:90px; object-fit:cover; border-radius:10px; flex-shrink:0;
}
.item-info{flex:1}
.item-info h3{font-family:'Playfair Display', serif; margin:0 0 6px; color:var(--text)}
.item-info .price{color:var(--accent); margin:6px 0 12px; font-weight:600}

/* Quantity */
.quantity{display:flex; align-items:center; gap:10px}
.qty-btn{
  background:var(--accent);
  color:#fff;
  border:none;
  width:28px; height:28px; border-radius:6px; cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center;
}
.qty-input{
  width:42px; padding:4px; text-align:center; border-radius:6px; border:1px solid var(--input-border);
}

/* Poista-nappi (vaihtoehtoinen ulkoasu) */
.remove-btn{
  background:var(--accent);
  color:#fff;
  border:none;
  padding:8px 14px;
  border-radius:20px;
  cursor:pointer;
  margin-left:12px;
  flex-shrink:0;
}

/* Yhteenveto (vaihtoehtoinen ulkoasu) */
.cart-summary{
  width:90%;
  max-width:900px;
  background:var(--panel-bg);
  border-radius:16px;
  padding:28px 30px;
  box-shadow: 0 4px 16px var(--shadow);
  display:block;
}
.cart-summary h3{font-family:'Playfair Display', serif; color:var(--accent); text-align:center; margin-top:0}
.summary-row{display:flex; justify-content:flex-end; gap:18px; align-items:center}
.summary-row p{margin:8px 0; color:var(--text)}
.coupon{display:flex; justify-content:flex-end; gap:8px; margin-bottom:6px}
.coupon input{padding:6px 8px; border-radius:6px; border:1px solid var(--input-border)}
.coupon button{padding:6px 10px; border-radius:6px; background:#eee; border:1px solid #ccc; cursor:pointer}

/* Kassalle-nappi (vaihtoehtoinen) */
.checkout-btn{
  display:block; margin:24px auto 0; width:220px; background:var(--accent); color:#fff; border:none;
  padding:12px 18px; border-radius:30px; cursor:pointer; font-weight:600;
}

/* Popup (varmistus, jos ei ollut) */
.cart-popup{
  position:fixed; top:20px; right:20px; background:var(--accent); color:#fff; padding:12px 18px;
  border-radius:12px; box-shadow:0 6px 18px rgba(0,0,0,0.15); opacity:0; transform:translateY(-10px);
  transition:all .25s ease; z-index:4000; pointer-events:none; font-weight:600;
}
.cart-popup.show{opacity:1; transform:translateY(0); pointer-events:auto}

/* Responsiivisuus (lisäykset) */
@media (max-width:900px){
  .cart-item{width:94%; padding:16px}
  .cart-section > h1{width:calc(100% - 48px)}
  .cart-summary{width:94%}
}
@media (max-width:600px){
  .nav-left{display:none}
  .nav-right{right:12px}
  .cart-item{flex-direction:column; align-items:flex-start}
  .cart-item img{width:100%; height:160px; border-radius:12px}
  .remove-btn{align-self:flex-end}
  .summary-row{justify-content:center}
  .coupon{justify-content:center}
}

/* === Viimeistely: varmistetaan ettei tyhjät placeholderit näy === */
#cart-items > p,
.cart-container > p {
  display: none !important;
}
#cart-summary:empty {
  display: none !important;
}

/* footer.css
   CSS for footer-advanced.html snippet
   Responsiivinen, saavutettava ja kevyt tyyli
*/

:root{
  --bg: #F4F4F4;
  --muted: #000000;
  --accent: #6ec1ff;
  --text: #ffffff;
  --max-width: 1100px;
  --gap: 1.25rem;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: #111; text-align: center; }

#cart-page {
  display: flex;
  flex-direction: column;
}

/* Footer yleisasetukset */
.site-footer {
  background: var(--bg);
  color: var(--text);
  padding: 2rem 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Sisällön asettelu: yksi sarake mobiilissa, useampi desktopissa */
.site-footer .container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  align-items: start;
  width: 100%;
}

/* Desktop: 4 kolumnia (brändi, linkit, yhteystiedot, some) */
@media (min-width: 720px) {
  .site-footer .container {
    grid-template-columns: 1fr 1fr 200px 160px;
  }
}

/* Brändi */
.footer-brand .brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0;
}
.footer-brand .brand-desc {
  color: var(--muted);
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
}

/* Navigaatio */
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}
.footer-nav a:hover,
.footer-nav a:active {
  color: var(--accent);
  text-decoration: underline;
}

/* Yhteystiedot */
.footer-contact p {
  margin: 0 0 0.5rem 0;
}
.footer-contact a {
  color: var(--muted);
  text-decoration: none;
}
.footer-contact a:hover { color: var(--accent); text-decoration: underline; }

/* Some-linkit */
.footer-social a {
  display: inline-block;
  margin-right: 0.6rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}
.footer-social a:hover,
.footer-social a:focus {
  background: rgba(255,255,255,0.06);
  color: var(--accent);
}

/* Alaosa (copyright, back-to-top) */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 1.5rem;
  padding-top: 1rem;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  gap: 1rem;
  align-items: left;
  justify-content: space-between;
  flex-wrap: wrap;
}
.footer-bottom small {
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--accent); text-decoration: underline; }

/* Takaisin ylös -painike */
.back-to-top {
  font-size: 0.9rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  transition: background-color 180ms ease, transform 120ms ease;
}
.back-to-top:hover,
.back-to-top:focus {
  background: rgba(255,255,255,0.05);
  color: var(--accent);
  transform: translateY(-1px);
}

/* Saavutettavuus: näkyvä fokus */
a:focus,
button:focus {
  outline: none;
}
a:focus-visible,
button:focus-visible {
  box-shadow: 0 0 0 3px rgba(110,193,255,0.18);
  border-radius: 6px;
}

/* Näppäimistön käyttäville: korostukset näkyviksi */
.footer-nav a,
.footer-contact a,
.footer-social a,
.back-to-top {
  transition: color 150ms ease, background-color 150ms ease;
}

/* Visually hidden (screentreader-only tekstit) */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .back-to-top,
  .footer-social a {
    transition: none;
  }
}

/* kaikkituotteet.css — v4 korjaukset
   IDE: lataa tämä tiedosto styles-header-cart.css:n jälkeen
*/

:root { box-sizing: border-box; }

/* Poistaa mahdollisen main:flex -pakotuksen */
main, main.page {
  display: block !important;
  padding: 36px 18px;
}

/* Layout: container = sidebar + content */
.container {
  max-width: 1180px;
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}

/* Sivupalkki */
.sidebar { position: relative; }
.filter-card {
  background: var(--panel-bg);
  color: #0b1220;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px var(--shadow-weak);
  width: 100%;
  min-height: 320px;
}

/* PRODUCTS säiliö (iso vaalea laatikko) */
.products {
  background-color: var(--bg-overlay);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  box-sizing: border-box;
  min-height: 360px;
  position: relative;
  width: 100%;
  overflow: visible;

  /* Varmistetaan, että tuotteiden sisällä oleva inner keskittää sisällön */
  display: block !important;
}

/* Sisäinen leveysrajoitus: tuoteryhmä keskelle valkoisen laatikon sisään */
.products .inner {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Otsikko */
.products h3 {
  text-align: center;
  margin: 6px 0 12px;
  font-family: 'Playfair Display', serif;
  color: #0b1220;
}

/* Ruudukko */
.product-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
  width: 100%;
}

/* Kortit */
.product-card {
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 180px;
}

/* Kuva */
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Estetään pystyvenytykset */
.product-card *, .products * { max-width: 100%; box-sizing: border-box; color: #611d28;}

/* Range - liukusäädin asetukset */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100% !important;
  height: 8px !important;
  border-radius: 6px;
  margin: 8px 0;
  background: linear-gradient(90deg, #e6a1a1 0%, #e6a1a1 50%, #ddd 50%, #ddd 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: #611d28; box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Pagination */
.products .pagination { margin-top: 20px; display:flex; justify-content:center; }
.products .pagination ul { list-style:none; padding:8px; margin:12px auto 0; display:flex; gap:8px; }

/* Responsiivisuus */
@media (max-width: 1000px) {
  .container { grid-template-columns: 200px 1fr; gap: 28px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .products .inner { max-width: 720px; }
}
@media (max-width: 720px) {
  .container { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .products { order: 1; padding: 20px; }
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-card img { height: 180px; }
  .products .inner { max-width: 640px; padding: 0 8px; }
}

/* CSS: anna laatikon venyä sisällön mukaan */
.products {
  height: auto !important;
  min-height: 0; /* poista tarpeettomat minimikorkeudet */
  overflow: visible; /* tai auto jos haluat scrollin */
}

/* Ostoskori-widget (pieni pyöreä nappi oikeassa alakulmassa) */ #cart-widget { position: fixed; right: 16px; bottom: 16px; z-index: 9999; background: #ff6f61; color: #fff; border-radius: 999px; padding: 10px 14px; box-shadow: 0 6px 18px rgba(0,0,0,0.2); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-family: inherit; } #cart-widget:hover { opacity: 0.95; }

/* Teksti widgetissä */ #cart-widget-text { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* Korisivun perusrakenne */ .cart-container { margin: 16px 0; display: flex; flex-direction: column; gap: 12px; } .cart-item { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid #eee; border-radius: 8px; background: #fff; } .cart-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }

/* Item-info */ .cart-item .item-info { flex: 1; display:flex; flex-direction:column; gap:6px; } .cart-item h3 { margin: 0; font-size: 16px; } .cart-item .price { margin: 0; color: #333; font-weight:600; }

/* Määrä-kontrollit */ .quantity { display:flex; align-items:center; gap:8px; margin-top:6px; } .qty-btn { width: 32px; height: 32px; border-radius:6px; border:1px solid #ddd; background:#f7f7f7; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; font-size:18px; } .qty-input { width:56px; padding:6px 8px; border:1px solid #ddd; border-radius:6px; text-align:center; font-size:14px; }

/* Poista-nappi */ .remove-btn { background: transparent; border: none; color: #b03a3a; cursor: pointer; font-weight:600; }

/* Cart-summary */ .cart-summary { margin-top: 16px; padding: 14px; border: 1px solid #eee; border-radius: 10px; background: #fafafa; } .cart-summary h3 { margin-top: 0; } .summary-row p { margin: 8px 0; }

/* Checkout-btn */ .checkout-btn { display:inline-block; margin-top:10px; padding:10px 16px; background:#0077cc; color:#fff; border:none; border-radius:8px; cursor:pointer; }

/* Responsiivisuus */ @media (max-width: 640px) { #cart-widget { right: 10px; bottom: 10px; padding: 8px 10px; font-size:13px; } .cart-item { flex-direction: row; gap: 10px; } .qty-input { width:48px; } .cart-summary { padding: 12px; } }

/* Product page: leveä hero + oikeanpuoleinen ostopaneeli */
.product-page { background: #fff; padding: 2rem 1rem; border-radius: 14px;}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 360px; /* vasen kuva (joustava) + oikea paneeli */
  gap: 2rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* Gallery */
.gallery { display:block; }
.main-image {
  background: #f7f5f3;
  border-radius: 10px;
  padding: 1rem;
  display:flex;
  justify-content:center;
  align-items:center;
  box-shadow: 0 8px 28px rgba(20,20,20,0.06);
}
.main-image img {
  max-width: 100%;
  width: 720px;        /* iso kuva pöytäkoneella */
  height: auto;
  border-radius: 6px;
  object-fit: contain;
  transition: transform .18s ease;
}
.main-image img:hover { transform: scale(1.02); }

/* Thumbnail pisteet + nav (pisteet keskitetty alhaalla) */
.gallery-controls { display:flex; justify-content:center; gap:0.6rem; margin-top:0.8rem; align-items:center; }
.thumb-dot {
  width:10px; height:10px; border-radius:50%;
  background:#e6e6e6; border:1px solid #eee; cursor:pointer;
}
.thumb-dot.active { background:var(--accent); box-shadow:0 6px 18px rgba(139,94,60,0.14); }

/* Oikeanpuoleinen ostopaneeli */
.purchase-box {
  background: linear-gradient(180deg, #fff, #fff);
  border-radius:12px;
  padding:1.2rem;
  border: 1px solid #f0ebe8;
  box-shadow: 0 10px 30px rgba(20,20,20,0.04);
  position: relative;
}

/* Hinta / tagit ylhäällä */
.price-row { display:flex; justify-content:space-between; align-items:center; gap:0.5rem; margin-bottom:0.6rem; }
.price-row .price { color: var(--accent); font-size:1.8rem; font-weight:800; }
.badge { background:#f7f1ee; color:var(--accent-2); padding:0.25rem .5rem; border-radius:8px; font-weight:600; font-size:0.85rem; }

/* Toimitus- ja myymäläbox (kartta-tyyli) */
.store-box {
  border:1px dashed #eee; border-radius:8px; padding:0.6rem; margin:0.6rem 0; font-size:0.95rem;
}
.store-options { display:grid; grid-template-columns: 1fr 1fr; gap:0.5rem; margin-top:0.5rem; }
.store-option { background:#faf9f8; padding:0.5rem; border-radius:8px; text-align:center; font-size:0.9rem; }

/* Suuri CTA */
.cta-row { margin-top:0.8rem; display:flex; gap:0.6rem; align-items:center; }
.btn-cta {
  background: #611d28; color:#fff; border:0; padding:0.85rem 1.2rem; border-radius:10px;
  font-weight:700; cursor:pointer; width:100%;
  box-shadow: 0 12px 36px rgba(10,103,255,0.14);
}
.btn-fav { border:1px solid #e6e6e6; background:#fff; padding:0.6rem; border-radius:10px; width:48px; }

/* Lyhyt listaus (bullet points) */
.features { margin-top:1rem; padding-left:0; list-style:none; display:flex; flex-direction:column; gap:0.45rem; }
.features li::before { content:"\2022"; color:var(--accent); display:inline-block; width:1em; margin-left:-1em; }

/* Arvostelut (tähtirivi) */
.ratings { display:flex; align-items:center; gap:0.6rem; color:#f2b01e; }

/* Sticky purchase box desktopille */
@media(min-width: 960px){
  .purchase-box { position: sticky; top:90px; }
}

/* Responsiivisuus: asettele pystyyn pienemmillä ruuduilla */
@media(max-width: 959px){
  .product-grid { grid-template-columns: 1fr; padding: 0 1rem; }
  .main-image img { width:100%; max-width:680px; }
  .purchase-box { position: static; margin-top:1rem; }
  .cta-row { flex-direction:column; }
  .btn-fav { width:auto; }
}

/* --- END OF FILE --- */


/* ===========================================================
   LISÄTTY KOODI: Product page layout + large gallery + purchase
   box (tyylit), ja pienet responsiiviset parannukset.
   Tämä lohko lisätty loppuun kuten pyydettiin.
   =========================================================== */

/* TULITUIKKU - Lisättävä osio style.css:n loppuun
   Tarkoitetuilla elementeillä: header, nav, hero, category-cards,
   product cards, large promo-hero, related section, taustakuvi o/kuviointi.
   Muokkaa luokkia HTML:n mukaan (esim. .hero, .category-cards, .product-card). */

/* --- VÄRIT JA FONTTIMUUTTUJAT --- */
:root{
  --bg-deep: #5a1f28;        /* taustaväri */
  --panel: rgba(245, 236, 238, 0.98); /* vaalea paneeli */
  --accent-tuli: #6f2f34;        /* brändiväri/painike */
  --accent-dark-tuli: #4b1a1e;
  --muted-tuli: #7b5a57;
  --card-shadow-tuli: 0 10px 30px rgba(10,10,10,0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --max-width-tuli: 1200px;
}

/* --- TAUSTA, PERUSASETUKSET --- */
body.tulit {
  background-color: transparent;
  color: #2a1f1f;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Keskitetty wrap */
.wrap-tulit {
  max-width: var(--max-width-tuli);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2; /* päälle taustakuviosta */
}

/* --- HEADER / NAV --- */
.site-header-tulit {
  background: linear-gradient(#f3eceb, #efe9e7);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header-tulit .wrap-tulit {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 1rem;
  padding: 18px 20px;
}
.brand-tulit {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #b46f4f;
  letter-spacing: 4px;
  text-align: center;
  margin: 0;
}
.main-nav-tulit {
  display:flex;
  gap: 1.25rem;
  align-items:center;
}
.main-nav-tulit a {
  color: #2f2f2f;
  text-decoration:none;
  font-weight:600;
}
.top-banner-mini-tulit {
  text-align:center;
  background: #6f2429;
  color: #fff;
  padding:6px 0;
  font-size:0.95rem;
}

/* --- KATEGORIAKORTIT (yläosan neliöt) --- */
.category-cards-tulit {
  display:flex;
  gap: 28px;
  justify-content:center;
  margin: 36px 0 18px;
  flex-wrap:wrap;
}
.category-card-tulit {
  width: 220px;
  height: 150px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--card-shadow-tuli);
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease;
}
.category-card-tulit img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.category-card-tulit .label {
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding: 10px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.9));
  text-align:center;
  font-family: "Playfair Display", serif;
  color: var(--accent-dark-tuli);
  font-weight:700;
  font-size:1rem;
}
.category-card-tulit:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0,0,0,0.18); }

/* --- SUURI PROMO HERO (vaalea paneeli keskellä) --- */
.promo-hero-tulit {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 64px 36px;
  box-shadow: var(--card-shadow-tuli);
  margin: 36px auto;
  text-align:center;
  max-width: 1000px;
}
.promo-hero-tulit h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  color: #341f22;
  margin: 0 0 10px;
}
.promo-hero-tulit p.lead {
  color: var(--muted-tuli);
  max-width: 720px;
  margin: 0 auto 22px;
  font-size:1rem;
}
.btn-cta-tulit {
  display:inline-block;
  background: var(--accent-tuli);
  color: white;
  padding: 12px 26px;
  border-radius: 28px;
  text-decoration: none;
  font-weight:700;
  box-shadow: 0 10px 26px rgba(111,47,50,0.18);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn-cta-tulit:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(111,47,50,0.22); }

/* --- SUOSIKKITUOTTEET / KORTIT --- */
.products-section-tulit {
  margin: 48px auto;
  max-width: 1000px;
  background: rgba(247,240,241,0.9);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow-tuli);
}
.section-title-tulit {
  font-family: "Playfair Display", serif;
  font-size: 1.9rem;
  text-align:center;
  margin-bottom: 22px;
  color: #3a2224;
}
.products-grid-tulit {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items:start;
}

/* yksittäinen tuotekortti */
.product-card-tulit {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card-tulit:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,0.10); }
.product-card-tulit img { width:100%; height:160px; object-fit:cover; border-radius:8px; }
.product-card-tulit .title { font-weight:700; color:var(--accent-dark-tuli); margin:12px 0 6px; font-size:1.05rem; }
.product-card-tulit .price { color:var(--accent-tuli); font-weight:700; }

/* rounded large containers spacing */
.container-spaced-tulit {
  padding-top: 28px;
  padding-bottom: 28px;
}

/* --- FOOTER --- */
.site-footer-tulit {
  color: #fff;
  text-align:center;
  background: linear-gradient(180deg, rgba(0,0,0,0.04), transparent);
}

/* --- RESPONSIVE --- */
@media (max-width: 980px){
  .category-cards-tulit { gap: 18px; }
  .category-card-tulit { width: 45%; height: 140px; }
  .promo-hero-tulit { padding: 42px 20px; }
  .main-nav-tulit { display:none; } /* oletetaan burger näkyviin */
}
@media (max-width: 640px){
  .category-card-tulit { width: 100%; height: 150px; border-radius: 12px; }
  .promo-hero-tulit { padding: 30px 16px; margin: 22px 12px; }
  .products-section-tulit { padding: 20px; margin: 18px 12px; }
  .wrap-tulit { padding: 0 12px; }
}

/* --- Pieni saavutettavuus ja fokus --- */
a:focus, button:focus { outline: 3px solid rgba(166,124,104,0.18); outline-offset: 4px; border-radius:6px; }

/* --- HUOM ---:
 - Korvaa '/images/bg-snow.png' omalla lumikuvalla tai poista body::before, jos ei haluta.
 - Varmista, että HTML:ssä on luokat: .wrap, .site-header, .top-banner-mini,
   .category-cards > .category-card, .promo-hero, .products-section, .products-grid,
   .product-card ja .btn-cta.
 - Muuta värejä ja fonttikokojen tarpeen mukaan.
*/

/* Rajoitetaan ruudukon leveys ja keskitetään sisältö */

/* === Product grid & larger images (add to end of style.css) === */

/* Keskitetään ja rajoitetaan ruudukon kokonaisleveys */
.products .inner {
  max-width: 980px;        /* säädä: 900-1100 sopii useimmille layouteille */
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}

/* Grid: useampi sarake mutta ei liian laajaksi venyviä sarakkeita */
.product-grid {
  display: grid;
  gap: 28px; /* rako sarakkeiden/ rivien välillä */
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  justify-content: center; /* keskittää ruudukon sivulle */
  align-items: start;      /* tasaa korttien yläreunat */
}

/* Älä pakota korttiin kiinteää leveysarvoa */
.product-card {
  width: auto !important;
  max-width: 360px; /* kortin maksimi (säädä halutessasi) */
  margin: 0 auto;
  box-sizing: border-box;
}

/* Suuremmat kuvat: kiinteä korkeus + cover */
.product-card img {
  display: block;
  width: 100%;
  height: 320px;       /* Suurempi kuva — säädä 280-380px tarpeen mukaan */
  object-fit: cover;   /* kattaa laatikon siististi */
  border-radius: 8px;
}

/* Jos käytössä on vanha kiinteä leveys 300px, tämä varmistaa ettei se pakota ruudukkoa */
@media (min-width: 1100px) {
  .product-grid { gap: 32px; }
  .product-card { max-width: 380px; }
  .product-card img { height: 340px; }
}

/* Pienemmille näytöille: pidä kuvat sopusuhtaisina */
@media (max-width: 720px) {
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
  .product-card img { height: 240px; }
  .product-card { max-width: none; }
}

/* Peruslayout FAQ-sivulle */
.promo-hero-tulit {
  margin: 18px auto;
  padding: 36px 28px;
  border-radius: 14px;
  background: var(--panel, rgba(245,236,238,0.98));
  box-shadow: 0 14px 40px rgba(0,0,0,0.08);
  text-align: center;
}

.promo-hero-tulit h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin: 0 0 8px;
  color: var(--accent-tuli, #6f2f34);
}
.promo-hero-tulit .lead {
  margin: 0 auto;
  color: var(--muted-tuli, #7b5a57);
  font-size: 1rem;
}

/* FAQ-alueen haku */
#faq-search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04) inset;
  background: #fff;
}
#faq-search:focus {
  outline: none;
  border-color: var(--accent-tuli, #6f2f34);
  box-shadow: 0 6px 28px rgba(111,47,50,0.08);
}

/* FAQ-listaus: käytetään korttimaisia details elementtejä */
#faq-list {
  margin-top: 16px;
}

/* yleinen korttituntuma (käyttää product-card-tulit) */
.product-card-tulit.faq-item {
  padding: 0;
  background: rgba(255,255,255,0.96);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

/* summary (kysymys) */
#faq-list details summary {
  list-style: none;
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
  font-weight: 700;
  font-size: 1.03rem;
  color: var(--accent-dark-tuli, #4b1a1e);
  background: transparent;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

/* poista oletus nuoli */
#faq-list details summary::-webkit-details-marker { display:none; }

/* oma nuoli ikoni */
#faq-list details summary::after {
  content: "⯆";
  margin-left: 12px;
  font-size: 0.9rem;
  color: var(--muted-tuli, #7b5a57);
  transition: transform .22s ease;
}

/* kun auki, pyöräytä nuolta */
#faq-list details[open] summary::after {
  transform: rotate(180deg);
}

/* vastaus-sisältö */
#faq-list details div {
  padding: 14px 20px 18px;
  color: var(--muted-tuli, #493434);
  line-height: 1.6;
  background: transparent;
  font-size: 0.98rem;
}

/* kontrastia varten linkit vastaustekstissä */
#faq-list details a {
  color: var(--accent-tuli, #6f2f34);
  text-decoration: underline;
}

/* pieni hover/active -efekti summarylle */
#faq-list details summary:hover {
  background: rgba(111,47,50,0.03);
}

/* näkyvyyden laskuri */
#faq-count {
  color: var(--muted-tuli, #7b5a57);
  font-size: 0.95rem;
}

/* saavutettavuus: keyboard focus näkyväksi */
#faq-list details summary:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(111,47,50,0.10);
  border-radius: 8px;
}

/* Ruutuihin sopiva asettelu */
@media (min-width: 1000px) {
  #faq-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  /* jos haluat, voit asettaa joitain FAQ-kortteja leveämmiksi käyttämällä nth-child */
  #faq-list details.faq-feature { grid-column: 1 / -1; }
}

@media (max-width: 999px) {
  #faq-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* pieni kiinnostava korostus auki olevalle kortille */
#faq-list details[open] {
  transform: translateY(-2px);
  transition: transform .18s ease;
}

/* Footer ja pääväreihin sopiva linkkien tyyli */
.site-footer-tulit a {
  color: rgba(255,255,255,0.95);
  text-decoration: underline;
}

/* Jos haluat tiiviimmän tilan: pienennä product-card paddingia */
.product-card-tulit.faq-item .faq-condensed &,
.product-card-tulit.faq-item.faq-condensed {
  padding: 10px;
}

/* Käytännön pieni apu: piilota elementit kun haku suodattaa ne pois (smooth) */
#faq-list .faq-item[hidden] {
  display: none !important;
}

/* Lopuksi varmistus, ettei yleisemmät tyylisäännöt ylikirjoita tätä (suurempi spesifisyys tarvittaessa) */

/* Perusasetukset */
:root{
  --bg-deep: #5a1f28;
  --panel: rgba(245,236,238,0.98);
  --accent-tuli: #6f2f34;
  --muted-tuli: #7b5a57;
  --card-shadow: 0 10px 30px rgba(0,0,0,0.08);
  --radius: 14px;
  --max-width: 1200px;
}

body.tulit {
  background-color: transparent;
  color: #2a1f1f;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Hero */
.support-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 18px;
}
.support-hero-inner {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  padding: 36px 28px;
  text-align: center;
}
.support-hero h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  margin: 0 0 8px;
  color: #331f21;
}
.support-hero .lead {
  color: var(--muted-tuli);
  margin-bottom: 16px;
}
.support-quick { display:flex; gap:12px; justify-content:center; margin-top:12px; }
.btn-cta-tulit {
  background: var(--accent-tuli);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight:700;
  border: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(111,47,50,0.12);
}
.btn-ghost {
  background: transparent;
  color: var(--accent-tuli);
  border: 1px solid rgba(111,47,50,0.08);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

/* Grid layout */
.support-grid { margin-top:18px; }
.support-left h3, .support-right h3, .support-form h3 { font-family: "Playfair Display", serif; color:#341f22; margin-bottom:10px; }
.support-left { color:#2a1f1f; }
.support-right { color:#2a1f1f; }

/* Contact cards in sidebar */
.contact-card {
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  margin-bottom:2px;
}
.contact-card a { color: var(--accent-tuli); text-decoration: none; }

/* FAQ styles */
.faq-item {
  background: rgba(255,255,255,0.96);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}
.faq-item summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight:700;
  list-style:none;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.faq-item summary::-webkit-details-marker { display:none; }
.faq-item summary::after { content: "⯆"; transition: transform .18s ease; color:var(--muted-tuli); }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-body { padding: 12px 18px 18px; color: var(--muted-tuli); line-height:1.6; }

/* support links */
.support-links { list-style: none; padding:0; margin:12px 0 0; color:var(--muted-tuli); }
.support-links li { margin-bottom:8px; }

/* Form */
.card-form {
  background: rgba(255,255,255,0.98);
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}
.grid-2 {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
label { display:block; font-size:0.95rem; color:#483634; margin-bottom:6px; }
input[type="text"], input[type="email"], select, textarea {
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #e6dede;
  font-size:0.96rem;
  box-sizing:border-box;
  background: #fff;
  color: #2a1f1f;
}
textarea { resize: vertical; min-height:120px; }
.card-form .btn-cta-tulit { border: none; }

@media (max-width: 980px) {
  .support-grid { grid-template-columns: 1fr; display:block; }
  .grid-2 { grid-template-columns: 1fr; }
  .support-hero-inner { padding: 22px; }
  .support-quick { flex-direction:column; gap:10px; }
}

/* Small helpers */
a { color: var(--accent-tuli); }
hr { border: none; border-top: 1px solid rgba(0,0,0,0.04); margin:16px 0; }

/* Ensure content appears above decorative background */
.wrap-tulit, main, .support-hero-inner, .card-form, .contact-card, .faq-item {
  position: relative;
  z-index: 2;
}

/* Teeman muuttujat (voit poistaa, jos sinulla jo on samat) */
:root{
  --bg-deep: #5a1f28;
  --panel: rgba(245,236,238,0.98);
  --accent: #6f2f34;
  --accent-dark: #4b1a1e;
  --muted: #7b5a57;
  --card-shadow: 0 12px 36px rgba(0,0,0,0.12);
  --radius: 14px;
  --max-width: 1200px;
}

/* Perusbody (kun käytetään body class="tulit") */
body.tulit {
  background-color: transparent;
  color: #2a1f1f;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Wrapper */
.wrap-tulit {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Header (kevyesti) */
.site-header-tulit { background: linear-gradient(#f3eceb,#efe9e7); border-bottom:1px solid rgba(0,0,0,0.04); position:sticky; top:0; z-index:10; }
.site-header-tulit .wrap-tulit { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:14px 20px; }
.brand-tulit { font-family: "Playfair Display", serif; font-size:1.8rem; color:#b46f4f; letter-spacing:3px; margin:0; }
.main-nav-tulit a { margin-right:14px; color:#2f2f2f; text-decoration:none; font-weight:600; }
.top-banner-mini-tulit { background:#6f2429; color:#fff; text-align:center; padding:6px 0; font-size:.95rem; }

/* Breadcrumb */
.breadcrumb { color: #f8eae8; margin:16px 0; font-size:0.95rem; }

/* Promo hero */
.promo-hero-tulit {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 42px 24px;
  box-shadow: var(--card-shadow);
  text-align: center;
}
.promo-hero-tulit h2 { font-family: "Playfair Display", serif; font-size:2.4rem; margin:0 0 8px; color:#341f22; }
.promo-hero-tulit .lead { color:var(--muted); margin-bottom:14px; max-width:820px; margin-left:auto; margin-right:auto; }
.hero-cta { display:flex; gap:12px; justify-content:center; margin-top:12px; }
.btn-cta-tulit { background:var(--accent); color:#fff; padding:10px 18px; border-radius:999px; text-decoration:none; font-weight:700; box-shadow:0 8px 24px rgba(111,47,50,0.12); border:0; cursor:pointer; }
.btn-ghost { background:transparent; border:1px solid rgba(111,47,50,0.08); color:var(--accent); padding:10px 14px; border-radius:999px; }

/* Services grid */
.services-grid { margin: 26px 0; }
.services-inner {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 18px;
  align-items:start;
}
.service-card {
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.06);
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height: 220px;
}
.service-icon { width:56px; height:56px; border-radius:10px; display:flex; align-items:center; justify-content:center; background:linear-gradient(180deg,#fff,#fff); box-shadow:0 6px 18px rgba(0,0,0,0.04); }
.service-card h3 { margin: 0; font-size:1.05rem; font-family: "Playfair Display", serif; color:#341f22; }
.service-card p { margin:0; color:var(--muted); line-height:1.5; flex:1; }
.link-more { color:var(--accent); font-weight:700; text-decoration:none; align-self:flex-start; }

/* Order form */
.order-section { margin: 28px 0; }
.order-inner {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--card-shadow);
}
.order-inner h3 { margin-top:0; font-size:1.4rem; font-family:"Playfair Display", serif; }
.muted { color:var(--muted); }

.order-form label { display:block; font-size:0.95rem; color:#493634; margin-bottom:8px; }
.order-form input[type="text"], .order-form input[type="email"], .order-form input[type="number"], .order-form textarea, .order-form select {
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #e6dede;
  background:#fff;
  margin-top:6px;
  box-sizing:border-box;
}
.grid-2 { display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
.form-actions { display:flex; gap:12px; margin-top:12px; }
.form-actions .btn-ghost { background:transparent; }

/* Responsive */
@media (max-width: 980px) {
  .grid-2 { grid-template-columns: 1fr; }
  .wrap-tulit { padding:0 16px; }
}

/* Small helpers */
a { color:var(--accent); }

/* Toimitus & Palautus -sivun tyylit (toimitus-ja-palautus.css)
   Lisää tämä tiedosto samaan kansioon kuin HTML tai muokkaa linkkiä HTML:ssä.
   Tämä käyttää Tulituikku-tyyliä: tummapunainen / vaalea paneeli / pyöristetyt kulmat.
*/

:root{
  --bg-deep: #5a1f28;
  --panel: rgba(245,236,238,0.98);
  --accent: #6f2f34;
  --muted: #7b5a57;
  --shadow: rgba(0,0,0,0.08);
  --radius: 14px;
  --max-width: 1200px;
}

/* Perus */
* { box-sizing: border-box; }

body.tulit {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: transparent;
  color: #2a1f1f;
  -webkit-font-smoothing: antialiased;
}

.wrap-tulit {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px;
  position: relative;
  z-index: 2;
}

/* Header ja banner (säilytä olemassa oleva header-tyyli jos käytät päästyleä) */
.site-header-tulit { position: relative; z-index: 20; }
.top-banner-mini-tulit { text-align:center; background:#611d28; color:#fff; padding:6px 0; }

/* Breadcrumb */
.breadcrumb {
  width: 100%;
  text-align: left;
  color: rgba(255,255,255,0.9);
  margin: 12px 0;
}
.breadcrumb a { color: rgba(255,255,255,0.9); text-decoration: none; }
.breadcrumb span { color: rgba(255,255,255,0.95); }

/* Hero */
.promo-hero-tulit {
  background: var(--panel);
  border-radius: 16px;
  padding: 36px 26px;
  box-shadow: 0 12px 36px var(--shadow);
  text-align: center;
  margin-bottom: 20px;
}
.promo-hero-tulit h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  margin: 0 0 8px;
  color: #341f22;
}
.promo-hero-tulit .lead { color: var(--muted); margin: 0 auto; max-width: 820px; }

/* Layout grid: pääsisältö + sivupalkki */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
  margin-bottom: 40px;
}

/* Panel (yleinen laatikko) */
.panel {
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 30px var(--shadow);
  margin-bottom: 18px;
}

/* Shipping cards */
.shipping-cards {
  display: flex;
  gap: 12px;
  margin: 14px 0 8px;
  flex-wrap: wrap;
}
.ship-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  min-width: 200px;
  flex: 1;
}
.ship-card h4 { margin:0 0 6px; font-family: "Playfair Display", serif; color: #341f22; }
.ship-card p { margin:0; color: var(--muted); }

/* Return steps list */
.return-steps {
  margin: 12px 0 0 18px;
  color: var(--muted);
}
.return-steps li { margin-bottom: 10px; }

/* FAQ list */
.faq-list dt { font-weight:700; margin-top:12px; color:#341f22; }
.faq-list dd { margin-left:0; color:var(--muted); margin-bottom:8px; }

/* Side (aside) */
.content-side .side-card {
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  margin-bottom: 12px;
}
.content-side address { font-style: normal; color: var(--muted); line-height:1.5; }

/* Buttons and links */
.btn-ghost {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(111,47,50,0.08);
  color: var(--accent);
  text-decoration: none;
}

/* Muted small text */
.muted { color: var(--muted); font-size: 0.95rem; }

/* Responsive */
@media (max-width: 980px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  .wrap-tulit { padding: 12px; }
  .promo-hero-tulit { padding: 24px 16px; }
  .breadcrumb { text-align: center; }
}

/* Accessibility focus */
a:focus, button:focus {
  outline: 3px solid rgba(166,124,104,0.18);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Small print */
small { color: var(--muted); }

/* End of file */

/* Korjaa qty-kentän venyminen items-list rivillä */
.items-list .item-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

/* Tekstikenttä tai label saa vapaasti venyä, mutta voi kutistua (min-width:0 tärkeä flex-säätöissä) */
.items-list .item-row .item-label,
.items-list .item-row .item-text {
  flex: 1 1 auto;
  min-width: 0; /* sallii kutistumisen flex-kontekstissa */
}

/* Määräkenttä: ei veny, kiinteä / rajoitettu leveys */
.items-list .item-row .qty-input,
.items-list .item-row input[type="number"] {
  flex: 0 0 86px;   /* ei veny, ei kutistu yli 86px */
  width: 86px;      /* kiinteä leveys */
  max-width: 100px; /* turvaraja pienille näytöille */
  box-sizing: border-box;
  text-align: center;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #e6dede;
  background: #fff;
}

/* Jos joku yleinen sääntö (esim. input { width:100% }) ylikirjoittaa tämän,
   voit lisätä vahvemman selektorin tai !important (viimeisenä keinona). Esim. */
.items-list .item-row input[type="number"] {
  /* width: 86px !important; */ /* ottaessasi käyttöön, poista kommenttimerkki */
}

/* Poista tarpeeton täysleveys muilta inputeilta rivillä */
.items-list .item-row input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
}

/* Pienemmillä näytöillä pienennetään määrä-kenttää hieman */
@media (max-width: 480px) {
  .items-list .item-row .qty-input,
  .items-list .item-row input[type="number"] {
    flex: 0 0 72px;
    width: 72px;
    max-width: 72px;
  }
}

/* Tuotetiedot (kynttilöiden hoito) — tuotetiedot.css
   Liitä tämä tiedosto tuotetiedot.html:n kanssa tai yhdistä päätyyliisi.
*/

:root{
  --bg-deep: #5a1f28;
  --panel: rgba(245,236,238,0.98);
  --accent: #6f2f34;
  --muted: #7b5a57;
  --radius: 14px;
  --max-width: 1100px;
  --shadow: rgba(0,0,0,0.08);
}

* { box-sizing: border-box; }
body.tulit {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: transparent;
  color: #2a1f1f;
  -webkit-font-smoothing: antialiased;
}

.wrap-tulit {
  max-width: var(--max-width);
  margin: 18px auto;
  padding: 0 18px 48px;
  position: relative;
  z-index: 2;
}

/* Hero */
.promo-hero-tulit {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 12px 36px var(--shadow);
}
.promo-hero-tulit h2 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  margin: 0 0 8px;
  color: #341f22;
}
.promo-hero-tulit .lead { color: var(--muted); margin: 0 auto; max-width: 900px; }

/* Content panels */
.content-panel {
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 18px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.06);
}
.content-panel h3 { margin-top:0; font-family:"Playfair Display", serif; color:#341f22; }

/* Two-column small panels */
.grid-2-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.panel {
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.05);
}
.panel h4 { margin-top:0; font-family: "Playfair Display", serif; color:#341f22; }

/* Lists & FAQ */
ul, ol { margin: 8px 0 0 18px; color: var(--muted); }
.faq dt { font-weight:700; margin-top:10px; color:#341f22; }
.faq dd { margin-left:0; color: var(--muted); }

/* Breadcrumb */
.breadcrumb { color: rgba(255,255,255,0.9); margin-bottom:8px; }
.breadcrumb a { color: rgba(255,255,255,0.9); text-decoration:none; }

/* Footer styling */
.site-footer-tulit { margin-top: 4px; }

/* Responsive */
@media (max-width: 900px) {
  .grid-2-panels { grid-template-columns: 1fr; }
  .wrap-tulit { padding: 0 12px 36px; }
  .promo-hero-tulit h2 { font-size: 1.6rem; }
}

/* Accessibility: visible focus */
a:focus, button:focus, summary:focus {
  outline: 3px solid rgba(110,193,255,0.18);
  outline-offset: 4px;
  border-radius: 6px;
}

/* maksut.css — tyylit Maksut-sivulle
   Liitä tämä tiedosto projektiin ja varmista polku HTML:ssä.
   Perustuu Tulituikku-teeman muuttujiin (tulit).
*/

:root{
  --bg-deep: #5a1f28;
  --panel: rgba(245,236,238,0.98);
  --accent: #6f2f34;
  --muted: #7b5a57;
  --radius: 12px;
  --shadow: rgba(0,0,0,0.08);
  --max-width: 1100px;
}

* { box-sizing: border-box; }
body.tulit {
  margin: 0;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background-color: transparent;
  color: #2a1f1f;
  -webkit-font-smoothing: antialiased;
}

.wrap-tulit {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px;
}

/* Hero */
.promo-hero-tulit {
  background: var(--panel);
  border-radius: 14px;
  padding: 30px 20px;
  box-shadow: 0 12px 36px var(--shadow);
  text-align: center;
  margin-bottom: 18px;
}
.promo-hero-tulit h2 { font-family: "Playfair Display", serif; font-size: 2rem; margin:0 0 6px; color:#341f22; }
.promo-hero-tulit .lead { color: var(--muted); max-width: 900px; margin: 0 auto; }

/* Payments grid */
.payments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.pay-card {
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 26px rgba(0,0,0,0.06);
  display:flex;
  flex-direction:column;
  gap:10px;
}
.pay-card .icon { font-size: 28px; background: linear-gradient(180deg,#fff,#fff); width:48px; height:48px; border-radius:10px; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 18px rgba(0,0,0,0.04); }

/* Panels */
.panel {
  background: rgba(255,255,255,0.98);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 30px var(--shadow);
  margin-bottom: 14px;
}
.muted { color: var(--muted); }

/* FAQ list */
.faq-list dt { font-weight:700; margin-top:12px; color:#341f22; }
.faq-list dd { margin-left:0; color:var(--muted); }

/* contact panel */
.contact-panel a { color: var(--accent); text-decoration: none; }

/* Responsive */
@media (max-width: 900px) {
  .wrap-tulit { padding: 12px; }
  .promo-hero-tulit { padding: 22px 12px; }
}

/* Accessibility */
a:focus, button:focus {
  outline: 3px solid rgba(166,124,104,0.18);
  outline-offset: 2px;
  border-radius: 6px;
}
:root{
  --bg: #fff7f6;
  --card-bg: #ffffff;
  --accent: #6f2f34;
  --accent-contrast: #ffffff;
  --muted: #6b5552;
  --success: #2b8a3e;
  --error: #c0392b;
  --radius: 10px;
  --shadow: 0 6px 20px rgba(17,17,17,0.08);
  --gutter: 18px;
  --max-width: 920px;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

main{
  max-width: var(--max-width);
  margin: 36px auto;
  padding: 18px;
  box-sizing: border-box;
}

/* Header */
main h1{
  margin:0 0 12px;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
  color: var(--accent);
}

/* Two-column layout */
.checkout-grid{
  display:grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items:start;
  margin-top: 18px;
}

/* Order summary (side card) */
.order-summary {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.03);
}
.order-summary h2{
  margin:0 0 10px;
  font-size:1.05rem;
  color:var(--accent);
}
.order-summary .summary-line{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 0;
  border-bottom:1px dashed rgba(0,0,0,0.04);
}
.order-summary .summary-line:last-of-type{ border-bottom:none; }
.order-summary .total {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:12px;
  font-weight:700;
  font-size:1.05rem;
}

/* Payment form card */
.payment-card{
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.03);
}

#payment-form { display:flex; flex-direction:column; gap:12px; }
#card-element {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

/* Buttons */
button#pay-button,
button.checkout-btn,
button.btn-cta {
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .06s ease, opacity .12s;
  box-shadow: 0 6px 14px rgba(111,47,52,0.12);
}
button#pay-button:hover { transform: translateY(-1px); }
button#pay-button:active { transform: translateY(0); }
button#pay-button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform:none;
  box-shadow:none;
}

/* Messages */
#payment-message { margin:0; font-size:0.95rem; color:var(--success); }
#payment-error { margin:0; font-size:0.95rem; color:var(--error); }

/* Small helper styles */
.small {
  font-size:0.9rem;
  color:var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { order: 2; }
  .payment-card { order: 1; }
  main { padding: 14px; margin: 18px auto; }
}

/* Accessibility focus */
button:focus, input:focus, #card-element:focus {
  outline: 3px solid rgba(111,47,52,0.12);
  outline-offset: 2px;
}

/* Tiny cosmetic: badge for cart count (if created by script) */
.cart-badge {
  display:inline-block;
  min-width:20px;
  padding:2px 6px;
  margin-left:8px;
  background:#222;
  color:#fff;
  border-radius:999px;
  font-size:0.8rem;
  text-align:center;
}

/* FIX: käytä yhtä selkeää tausta-asetusta, joka toimii eri selaimissa */

/* varmista korkeus */
html, body {
  height: 100%;
}

/* Aseta marmori suoraan body:lle (muuta polku oikeaksi, esim. /images/marmori.jpg) */
body {
  background-image: url('WalppisTuliTuikku.jpg'); /* <- varmista polku ja kirjainkoko */
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll; /* scroll toimii paremmin mobiilissa */
  /* fallback color jos kuvaa ei saada: */
  background-color: #fff7f6;
}

/* Jos haluat kiinteän efektin vain pöytäkoneille (ei mobiiliin): */
@media (min-width: 900px) {
  body { background-attachment: fixed; }
}

/* Varmista, että teeman body.tulit ei peitä taustaa */
body.tulit {
  background-color: transparent !important;
}

/* Sisällön elementit pysyvät päällä marmoria (varmistus) */
.wrap-tulit, main, .panel, .promo-hero-tulit, .side-card {
  position: relative;
  z-index: 2;
  /* jos haluat taustan hieman kuultavaksi: säädä panel taustaa, esim.
     background: rgba(255,255,255,0.94);
  */
}

/* Poista mahdolliset vanhat body::before -säännöt ylikirjoittamalla */
body::before { display: none !important; content: none !important; }

/* Mobile fixes — liitä tämä tiedoston loppuun tai erillisenä linkkinä viimeiseksi */
/* Priorisoitu korjaus: varmista että viewport-meta on käytössä (HTML) */

/* Perus mobiiliasetukset (mobile-first varmistus) */
html { -webkit-text-size-adjust: 100%; } /* estää automaattisen zoomauksen iOS:ssä */
button, .btn-cta, .btn-cta-tulit, .checkout-btn, .menu-btn {
  min-height: 44px;
  min-width: 44px;
  padding: 10px 12px;
  box-sizing: border-box;
}

/* Estetään liian kova leveyspakko */
* { max-width: 100%; }

/* Navigaatio: piilotetaan laajat navit mobiilissa (varmistus) */
@media (max-width: 768px) {
  .nav-left, .nav-right, .main-nav-tulit { display: none !important; }
  .menu-btn { display: inline-flex !important; z-index: 9000; }
}

/* Tuotekortit: käytä responsiivista gridia, ei kiinteitä leveysarvoja */
.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 16px;
}
.product-card {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto;
}
.product-card img {
  width: 100%;
  height: auto; /* paremmin skaalautuva kuin kiinteä korkeus mobiilissa */
  aspect-ratio: 4 / 3; /* selaimilla jotka tukevat */
  object-fit: cover;
}

/* Ostoskori: pinottaa rivit mobiilissa */
.cart-item {
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .cart-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 12px !important;
    width: 100% !important;
  }
  .cart-item img { width: 100% !important; height: auto !important; max-height: 240px; object-fit: cover; }
  .item-info { margin: 0 !important; width: 100% !important; }
  .quantity { width: 100%; justify-content: flex-start; }
  .checkout-btn, .view-all, .btn-cta, .btn-cta-tulit { width: 100% !important; max-width: none !important; }
}

/* Pienennetään hero-otsikon kokoa mobiilissa */
@media (max-width: 480px) {
  .hero h2, .promo-hero-tulit h2 { font-size: 1.6rem !important; line-height: 1.15; }
  .hero, .promo-hero-tulit { padding: 28px 12px !important; margin: 16px 6px !important; }
}

/* Inputit: täysleveiksi ja selkeiksi kosketuksella */
.filters select, .filters input[type="text"], .contact-form input, .contact-form textarea,
.items-list .item-row input[type="number"], .qty-input {
  width: 100% !important;
  min-height: 40px;
  padding: 10px;
  box-sizing: border-box;
}

/* Cart-widget varmistus (pieni butoni oikeassa alakulmassa) */
#cart-widget { right: 12px !important; bottom: 12px !important; padding: 10px 12px !important; }

/* Poista taustakuva fixed-moodi mobiilissa (saattaa hidastaa) */
@media (max-width: 900px) {
  body { background-attachment: scroll !important; }
}

/* Klikkaus-/kosketuksen sijasta hover-effeekteille varavaihto */
@media (pointer: coarse) {
  .product-card:hover, .team-card:hover, .cart-item:hover { transform: none !important; }
}

/* Varmista riittävä kontrasti & fokus näkyy mobiililla */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(110,193,255,0.18) !important;
  outline-offset: 3px;
  border-radius: 6px;
}

/* Estä layout-shiftejä määrittelemällä kuville placeholder-koot (vaikka ratio käytössä) */
img { display: block; max-width: 100%; height: auto; }

/* perus */
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; padding: 0; }

/* pääkontaineri: keskitetty, joustava leveys */
.wrapper {
  width: 100%;
  max-width: 1000px; /* tasapaino pöytä/desktopille */
  margin: 0 auto;
  padding: 0 12px;   /* reuna mobiilissa */
}

/* varmista että elementit eivät veny yli */
img, video { max-width: 100%; height: auto; display:block; }

/* estetään vaakasuuntaiset skrollaukset, jos jokin overflowaa */
body { overflow-x: hidden; }

.product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

html { font-size: 16px; }
h1 { font-size: clamp(1.4rem, 3.6vw, 2.4rem); } /* kasvaa laitteessa */

button, .btn {
  min-height: 44px;
  padding: 10px 14px;
  touch-action: manipulation;
}

body {
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}

@media (max-width: 600px) {
  .logo {
    font-size: 16px;
  }
  .links {
    font-size: 12px;
    padding: 0.3rem 0.5rem;
  }
}

/* Palautuslomake: palautuslomake.css
   Tyylit sopimaan Tulituikku-teemaan. Lisää tämä tiedosto samaan kansioon kuin HTML. */

/* Värit + muuttujat */
:root{
  --bg-deep: #5a1f28;
  --panel: rgba(245,236,238,0.98);
  --accent: #6f2f34;
  --accent-dark: #4b1a1e;
  --muted: #7b5a57;
  --shadow: rgba(0,0,0,0.08);
  --radius: 12px;
  --max-width: 1000px;
}

/* Yleiset */
* { box-sizing: border-box; }
body.tulit {
  background-color: var(--bg-deep);
  color: #2a1f1f;
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap-tulit { max-width: var(--max-width); margin: 0 auto; padding: 18px; }

/* Panel */
.panel {
  background: var(--panel);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 30px var(--shadow);
}

/* Otsikot */
.promo-hero-tulit h2, .panel h3 {
  font-family: "Playfair Display", serif;
  color: #341f22;
  margin: 0 0 8px;
}

/* Lomake */
.return-form { display:block; margin-top:12px; }
.return-form fieldset { border: none; margin: 0 0 14px; padding: 0; }
.return-form legend { font-weight:700; margin-bottom:8px; color: var(--accent-dark); }

/* Labelit ja kentät */
label { display:block; font-size:0.95rem; color:#493634; margin-bottom:8px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea, select {
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid #e6dede;
  background: #fff;
  font-size:0.95rem;
  color: #2a1f1f;
}
.textarea, textarea { min-height:120px; }

/* Grid 2-sarakkeille */
.grid-2 {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}

/* items list */
.items-list .item-row {
  display:flex;
  gap:10px;
  align-items:center;
  margin-bottom:10px;
}
.item-label { flex:1; }
.qty-input { width:86px; padding:8px; border-radius:8px; border:1px solid #e6dede; }

/* custom added row */
.item-row.custom input.item-text { flex:1; padding:8px 10px; }

/* tiedostokenttä */
.file-label input[type="file"] { display:block; margin-top:8px; }

/* consent */
.consent label { display:flex; gap:10px; align-items:flex-start; }
.consent input[type="checkbox"] { transform:translateY(3px); }

/* painikkeet */
.form-actions { display:flex; gap:12px; margin-top:12px; }
.btn-cta-tulit {
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  border: none;
  font-weight:700;
  cursor: pointer;
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(111,47,50,0.08);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent);
  cursor: pointer;
}

/* status */
.form-status { margin-top:12px; font-weight:600; }

/* small text */
.muted, .small { color: var(--muted); font-size:0.95rem; }

/* responsive */
@media (max-width: 820px) {
  .grid-2 { grid-template-columns: 1fr; }
  .qty-input { width:72px; }
  .wrap-tulit { padding:12px; }
  .items-list .item-row { flex-direction:row; gap:8px; }
}

/* focus */
input:focus, textarea:focus, select:focus, button:focus {
  outline: 3px solid rgba(166,124,104,0.12);
  outline-offset: 2px;
  border-color: var(--accent);
}

/* accessibility helpers */
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}