/* Analyse av filen: CSS for produktkort og demo-login */
/*
 * Document Type: CSS
 * File Name: styles.css
 * File Path: /scripts/css/styles.css
 * Description: Ekstern stil for produktkort og demo-side.
 * Author: Copilot/Microsoft
 * Last Modified: 29.7.2025
 */

/* Generell body-styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0 16px;
  background: #f5f5f5;
}

/* Overskrift */
h1 {
  text-align: center;
  margin: 24px 0;
  color: #333;
}

/* Produktrutenett */
#products-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

/* Produktkort */
.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
}

/* Produktnavn */
.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.2em;
  color: #007BFF;
}

/* Produktbeskrivelse */
.product-card p {
  margin: 0 0 12px;
  color: #555;
  line-height: 1.4;
}

/* Pris-styling */
.product-card .price {
  font-weight: bold;
  font-size: 1.1em;
  color: #222;
}

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

body {
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

header {
    background: #004a80;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    margin-right: 1rem;
}

nav ul {
    list-style: none;
    display: flex;
}

nav li + li {
    margin-left: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
}

main {
    padding: 2rem;
}

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

.product-card {
    background: white;
    padding: 1rem;
    border: 1px solid #ddd;
    text-align: center;
}

.product-card img {
    max-width: 100%;
    height: auto;
}

.price {
    font-weight: bold;
    margin: 0.5rem 0;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #004a80;
    color: white;
    margin-top: 2rem;
}