/* --- Variabler --- */
:root {
  --color-bg: #f5f5f5;
  --color-text: #333;
  --color-primary: #3a93d3;
  --color-primary-hover: #0077cc;
  --color-border: #7f5454;
  --color-hover-bg: #e5dcd9;
  --color-footer-bg: #e2e2e2;
  --border-radius: 10px;
  --card-padding: 20px;
  --transition-speed: 0.3s;
}

/* --- Grundinställningar --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: sans-serif;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

h1,
h2,
h3 {
  margin: 20px 0;
  text-align: center;
}

/* --- Hero --- */
.hero {
  position: relative;
  text-align: center;
}

.hero img.hero-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

/* --- Hamburgerikon --- */
.hamburger {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 25px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 101;
}

.hamburger span {
  display: block;
  height: 4px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Popup-meny --- */
.nav-links {
  position: absolute;
  top: 60px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 20px;
  border-radius: 8px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-links.active {
  display: flex;
}

/* --- Produkter --- */
.products {
  padding: 40px 20px;
}

.product-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.product {
  display: block;
  position: relative;
  background: white;
  border-radius: var(--border-radius);
  padding: var(--card-padding);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--transition-speed) ease;
}

.product:hover {
  background-color: var(--color-hover-bg);
  border: 0.5px solid var(--color-border);
}

.product img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
  border-radius: 6px;
}

.price {
  margin: 10px 0;
  font-weight: bold;
}

/* --- Info-text: Läs mer --- */
.info {
  margin-top: 5px;
  color: var(--color-primary);
  font-weight: bold;
  cursor: pointer;
  transition: color var(--transition-speed) ease;
}

.info:hover {
  color: var(--color-primary-hover);
}

/* --- Orderform --- */
.order {
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--border-radius);
  max-width: 600px;
  margin: 40px auto;
  border: 2px solid var(--color-border);
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);
}

.order h2 {
  margin-bottom: 20px;
}

.order label {
  display: block;
  margin: 15px 0 5px 0;
}

.order input,
.order select {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: auto;
}

.checkbox-wrapper label {
  margin: 0;
  cursor: pointer;
}

.order button {
  display: block;
  /* behövs när text-align används */
  margin: 20px auto 0 auto;
  background-color: var(--color-primary);
  padding: 10px 20px;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  border: none;
  transition: background-color var(--transition-speed) ease;
}

.order button:hover {
  background-color: var(--color-primary-hover);
}

/* --- Footer --- */
footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  background: var(--color-footer-bg);
}

/* --- Responsiv grid för produkter --- */
@media (min-width: 768px) and (max-width: 1024px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .product-list {
    grid-template-columns: repeat(4, 1fr);
  }
}