@import url('/public/assets/css/public_base.css');
/* === Produktside layout === */
body {
  background-color: #f9fafb;
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  color: #0b1440;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* === Kategorihode === */
.category-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #ffffff;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.category-header h2 {
  font-size: 1.2rem;
  font-weight: bold;
  color: #0b1440;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.category-products {
  margin-bottom: 40px;
  padding-top: 12px;
}

/* === Produktkort === */
.product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 12px;
  background-color: #f5f5f5; /* valgfritt: gir fin bakgrunn for bilder med luft */
}


.product-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0b1440;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.95rem;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 12px;
  line-height: 1.5;
}

.product-card .price {
  text-align: right;
  font-weight: bold;
  color: #007BFF;
  font-size: 1rem;
}

.product-card .margin {
  text-align: right;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0b1440;
  margin-top: 4px;
}

/* === CTA-knapper === */
.cta-btn {
  display: inline-block;
  background: linear-gradient(135deg, #007BFF, #0b1440);
  color: white;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin: 6px auto;
}

.cta-btn:hover {
  transform: scale(1.03);
  opacity: 0.95;
}

.cta-btn-secondary {
  display: inline-block;
  background-color: white;
  border: 2px solid #0b1440;
  color: #0b1440;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  margin-top: 10px;
}

.cta-btn-secondary:hover {
  background-color: #0b1440;
  color: white;
}

/* === Mobiltilpasning === */
@media (max-width: 600px) {
  .product-card img {
    height: 160px;
  }

  .product-card h3 {
    font-size: 1rem;
  }

  .product-card p {
    font-size: 0.9rem;
  }

  .category-header h2 {
    font-size: 1.05rem;
  }

  .cta-btn, .cta-btn-secondary {
    width: 100%;
    text-align: center;
  }
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
}

.modal video {
  width: 100%;
  border-radius: 8px;
}

.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 2rem;
  font-weight: bold;
  color: #ffffff;
  background: #ff0000;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-align: center;
  line-height: 36px;
  cursor: pointer;
  z-index: 1001;
}

.close:hover {
  background: #000000cc;
}

.hidden {
  display: none !important;
}
