/* ===== style.css ===== */

:root {
  --primary: #029ea3;
  --bg: #f5f7fa;
  --text-dark: #222;
  --success: #27ae60;
  --error: #e74c3c;
  --card-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* --- Grundlayout --- */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: var(--bg);
  margin: 0;
  padding: 0;
  color: var(--text-dark);
}

/* --- Header & Navigation --- */
header {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 25px 15px;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

h1 {
  margin: 0;
  font-size: 2rem;
}

navnav {
  position: absolute;
  top: 20px;
  right: 30px;

  display: flex;
  gap: 25px;

  background: rgba(255, 255, 255, 0.15);
  padding: 10px 18px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: 0.3s ease;
}

/* Snygg underline-animation */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: white;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  opacity: 1;
  transform: translateY(-1px);
}


/* --- Mobilresponsiv meny --- */
@media (max-width: 600px) {
  nav {
    position: static;
    margin-top: 10px;

    flex-direction: column;
    align-items: flex-start;

    gap: 10px;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
  }

  nav a {
    font-size: 0.95rem;
  }
}

/* --- Filter & sökfält --- */
.filter-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
  padding: 0 20px;
}

select,
input[type="text"] {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  background-color: white;
  cursor: pointer;
}

input[type="text"] {
  width: 220px;
}

/* --- Produktkort --- */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 12px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-info {
  padding: 15px;
}

.product-info h2 {
  font-size: 1.1rem;
  margin: 8px 0;
  font-weight: 600;
}

.product-info p.price {
  font-size: 1rem;
  color: var(--success);
  font-weight: bold;
  margin: 5px 0;
}

.product-info p.desc {
  font-size: 0.9rem;
  color: #555;
  margin: 4px 0;
}

.status {
  font-size: 0.9rem;
  margin-top: 5px;
  font-weight: bold;
}

.in-stock { color: var(--success); }
.out-of-stock { color: var(--error); }

/* --- Informationssidor (Hur köper jag / Betalningar) --- */
.content {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  padding: 20px;
}

.info-box {
  background: white;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  max-width: 600px;
  padding: 30px;
  text-align: left;
  animation: fadeIn 0.8s ease;
}

.info-box h2 {
  text-align: center;
  color: var(--primary);
}

.info-box p {
  line-height: 1.6;
  margin-bottom: 15px;
}

ul {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 15px;
}

/* --- Footer --- */
footer {
  text-align: center;
  padding: 20px;
  color: #777;
  font-size: 0.9rem;
}

/* --- Animation --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* hur man köper css */
    body {
      font-family: "Segoe UI", Arial, sans-serif;
      background-color: #f5f7fa;
      margin: 0;
      padding: 0;
      color: #222;
    }

    header {
      background-color: #2aa4a8;
      color: white;
      text-align: center;
      padding: 25px 15px;
      position: relative;
    }

    nav {
      position: absolute;
      top: 15px;
      right: 20px;
    }

    nav a {
      color: white;
      text-decoration: none;
      margin-left: 15px;
      font-weight: 600;
    }

    nav a:hover {
      opacity: 0.8;
    }

    h1 {
      margin: 0;
      font-size: 2rem;
    }

    .content {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 70vh;
      padding: 20px;
    }

    .info-box {
      background: white;
      border-radius: 15px;
      box-shadow: 0 4px 15px rgba(0,0,0,0.1);
      max-width: 600px;
      padding: 30px;
      text-align: left;
      animation: fadeIn 0.8s ease;
    }

    .info-box h2 {
      text-align: center;
      color: #029ea3;
    }

    .info-box p {
      line-height: 1.6;
      margin-bottom: 15px;
    }

    footer {
      text-align: center;
      padding: 20px;
      color: #777;
      font-size: 0.9rem;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }


/* index */

    /* ===========================
       POPUP / BILDLIGHTBOX CSS
    ============================*/
    .popup {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      justify-content: center;
      align-items: center;
      flex-direction: column;
      z-index: 9999;
      padding-top: 40px;
    }

    .popup img {
      max-width: 80%;
      max-height: 70vh;
      border-radius: 10px;
      margin-bottom: 20px;
    }

    #popup-thumbnails img {
      width: 100px;
      height: auto;
      margin: 5px;
      cursor: pointer;
      border-radius: 5px;
      transition: 0.2s;
    }

    #popup-thumbnails img:hover {
      transform: scale(1.1);
    }

    #close-popup {
      position: absolute;
      top: 15px;
      right: 25px;
      font-size: 40px;
      color: white;
      cursor: pointer;
      font-weight: bold;
    }