/* === Generelle stiler === */
body {
  font-family: 'Work Sans', sans-serif;
  background-color: #fff;
  color: #333;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
}

/* === Top-banner === */
.top-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
  padding: 1rem 0;
}

.top-banner .logo {
  height: 120px;
  width: auto;
}

.banner-tekst {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-tekst h1,
h2 {
  font-family: 'Playfair Display', serif;
  color: #4b2e1e;
  margin: 0;
}

.banner-tekst h1 {
  font-size: 2.2rem;
}

.banner-tekst p {
  font-size: 1.1rem;
  color: #6b4e3d;
  margin: 0.25rem 0 0;
}

/* === Navbar === */
.navbar {
  background-color: #f4f4f4;
  padding: 0.75rem 1rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.navbar a,
.navbar .dropbtn {
  color: #333;
  font-weight: bold;
  margin-right: 1rem;
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0.5em;
}

.navbar a:hover,
.navbar .dropbtn:hover {
  background-color: #ddd;
  border-radius: 4px;
}

.handlekurv-knapp {
  background-color: #4CAF50;
  color: black !important;
  padding: 0.5em 1em;
  border-radius: 5px;
  font-weight: bold;
}
/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Selve innholdet i dropdown (den som vises på hover) */
.dropdown-innhold {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 180px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border: 1px solid #ddd;
    padding: 0;
}

/* Vis dropdown når man holder over knappen */
.dropdown:hover .dropdown-innhold {
    display: block;
}

/* Lenker i dropdown */
.dropdown-innhold a {
    color: #333;
    padding: 10px 15px;
    text-decoration: none;
    display: block;
    white-space: nowrap;
}

/* Hover-effekt på lenker i dropdown */
.dropdown-innhold a:hover {
    background-color: #eee;
}

/* === Søkesenter === */
.sokesenter {
  flex: 1;
  display: flex;
  justify-content: center;
}

.sokeskjema {
  display: flex;
  border: 2px solid #7b4c2e;
  border-radius: 5px;
  overflow: hidden;
  margin-left: auto;
  margin-right: 1rem;
  height: 2.4rem;
}

.sokeskjema input[type="text"] {
  padding: 0.5em;
  border: none;
  outline: none;
  width: 150px;
}

.sokeskjema button {
  background: none;
  border: none;
  padding: 0 0.75em;
  cursor: pointer;
}

/* === Produktoversikt === */
.produkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  padding: 1rem 0;
}

.produkt-kort {
  border: 1px solid #ddd;
  padding: 0.75rem;
  border-radius: 8px;
  background-color: #fafafa;
  transition: box-shadow 0.2s ease;
  max-width: 220px;
  margin: 0 auto;
}

.produkt-kort:hover {
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
}

.produkt-kort img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.produkt-kort h3 {
  font-size: 1rem;
  margin: 0.3rem 0;
}

.produkt-kort p {
  font-size: 0.9rem;
  margin: 0.2rem 0;
}

.produkt-kort a {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #4CAF50;
  font-weight: bold;
}

/* === Produktoversikt === */
.produkt-grid {
  max-width: 1100px;
  margin: 0 auto;
}
.produkt-kort-link {
  text-decoration: none;
  color: inherit;
  display: block;
  width: 100%;
  height: 100%;
}

.produkt-kort {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 0.7rem;
  text-align: center;
}

.produkt-kort:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.produkt-kort img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.produkt-kort h3 {
  font-size: 1rem;
  margin: 0.3rem 0;
  color: #4b2e1e;
}

.produkt-kort p {
  font-size: 0.95rem;
  margin: 0.2rem 0;
  color: #333;
}

/* Fjern eventuell gammel lenke-stil inne i kortet */
.produkt-kort a {
  display: none;
}


/* === Produktdetalj === */
.produkt-detalj-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto auto;
  gap: 2rem;
  justify-content: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto 2rem auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .produkt-detalj-container {
    grid-template-columns: 300px 1fr;
    grid-template-rows: auto 1fr auto auto;
  }
}

.produkt-info-header {
  grid-column: 1 / -1;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .produkt-info-header {
    grid-column: 2;
    grid-row: 1;
  }
}

.produkt-info-header h1 {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
  color: #4b2e1e;
}

.produkt-info-header .pris {
  font-size: 1.6rem;
  font-weight: bold;
  color: #7b4c2e;
  margin-bottom: 0.5rem;
}

.produkt-bilde {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  grid-column: 1;
  grid-row: 2;
}

.produkt-bilde img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
  cursor: zoom-in;
}

.produkt-bilde:hover img {
  transform: scale(1.15);
}

.produkt-bilde::after {
  content: "🔍";
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.75);
  padding: 2px 6px;
  border-radius: 4px;
}

.produkt-info-wrapper {
  grid-column: 1;
  grid-row: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 250px;
  position: relative;
}

@media (min-width: 768px) {
  .produkt-info-wrapper {
    grid-column: 2;
    grid-row: 2;
  }
}

.produkt-info-tekst {
  font-size: 1.1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  transition: max-height 0.3s ease;
}

.produkt-info-tekst.vis-hele {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.vis-mer-knapp {
  background: none;
  border: none;
  color: #7b4c2e;
  font-weight: bold;
  cursor: pointer;
  margin-top: 0.5rem;
  padding: 0;
  align-self: flex-end;
}

.vis-mer-knapp.skjul {
  display: none;
}

.produkt-actions {
  grid-column: 1;
  grid-row: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .produkt-actions {
    grid-column: 2;
    grid-row: 3;
    justify-content: space-between;
  }
}

.legg-i-kurv-skjema {
  display: flex;
  gap: 0.5rem;
  align-items: center;         /* <–– viktig for input og knapp */
  flex-wrap: wrap;
}

.legg-i-kurv-skjema input[type="number"] {
  width: 70px;
  padding: 0.4em 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  line-height: 1.2rem;
}

.legg-i-kurv-skjema button {
  background-color: #7b4c2e;
  color: white;
  border: none;
  padding: 0.5em 1.2em;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.2rem;
}

.legg-i-kurv-skjema button:hover {
  background-color: #5e3820;
}

.tilbake-knapp {
  display: inline-block;
  padding: 0.5em 1.2em;
  font-size: 1rem;
  background-color: #7b4c2e;
  color: white;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2rem;
}

.tilbake-knapp:hover {
  background-color: #5c3922;
}

/* === Zoom-modal === */
.zoom-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 4%;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.85);
}

.zoom-modal img.zoom-bilde {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
}

.zoom-modal .lukk {
  position: absolute;
  top: 30px;
  right: 45px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
/* === Handlekurv-artikler === */
.handlekurv-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.handlekurv-kube {
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  padding: 1rem;
  width: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.handlekurv-kube img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.handlekurv-kube .info {
  text-align: center;
}

.handlekurv-kube h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.handlekurv-kube p {
  font-size: 0.9rem;
  margin: 0.3rem 0;
}

.handlekurv-kube input[type="number"] {
  width: 60px;
  padding: 0.4em;
  margin: 0.5rem 0;
  text-align: center;
}

.handlekurv-kube a {
  color: #6a1b9a;
  font-size: 0.85rem;
}

.handlekurv-kube a:hover {
  text-decoration: underline;
}

/* === Handlekurv oppdater / kasse === */
.handlekurv-sum-boks {
  background-color: #f5f5f5;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 600px;
  margin: 1.5rem auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.handlekurv-sum-boks p {
  margin: 0.5rem 0;
}

.handlekurv-sum-boks strong {
  font-weight: 700;
  font-size: 1.1rem;
}

.handlekurv-sum-boks .oppdater-knapp,
.handlekurv-sum-boks .til-bestilling {
  display: inline-block;
  margin: 0.5rem 0.25rem;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.95rem;
}

.handlekurv-sum-boks .oppdater-knapp {
  background-color: purple;
  color: white;
  border: none;
}

.handlekurv-sum-boks .oppdater-knapp:hover {
  background-color: blue;
}

.handlekurv-sum-boks .til-bestilling {
  background-color: #5e3820;
  color: white;
}

.handlekurv-sum-boks .til-bestilling:hover {
  background-color: #4CAF50;
}

/* === Fisk-info === */
.fisk-info {
  margin-top: 1rem;
  text-align: center;
  font-style: italic;
  color: #7b4c2e;
}

/* === Mobil responsivt === */
@media (max-width: 768px) {
  .produkt-grid, .handlekurv-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: center;
  }

  .handlekurv-kube {
    width: 90%;
  }

  .handlekurv-sum-boks {
    padding: 1rem;
    width: 90%;
  }
}

.sentrert-overskrift {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.bestillingsskjema-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.bestillingsfelt {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
}

.bestillingsfelt label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.bestillingsfelt input,
.bestillingsfelt textarea,
.bestillingsfelt select {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.bestill-knapp {
    background-color: #7b4c2e;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 1.5rem;
}

.bestill-knapp:hover {
    background-color: #5e3820;
}

.bestilling-wrapper {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.oppsummering-boks {
    background-color: #f8f8f8;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    max-width: 300px;
    flex: 1;
    text-align: center;
}

.bestilling-skjema {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.knapp-rad.sentrert {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.kommentar-felt {
    height: 5.6rem; /* matcher inputhøyde, men gir luft */
    resize: none;   /* fjern nedre høyrehjørne for resizing */
    overflow: hidden;
    line-height: 1.2;
    padding-top: 0.65rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* === Om oss side === */
.om-oss-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
  line-height: 1.7;
  color: #333;
  font-size: 1.1rem;
}

.om-oss-container h1,
.om-oss-container h2 {
  color: #4b2e1e;
  margin-bottom: 0.75rem;
  font-family: 'Playfair Display', serif;
}

.om-oss-container h1 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.om-oss-container h2 {
  font-size: 1.5rem;
  margin-top: 2rem;
}

.om-oss-container p {
  margin-bottom: 1rem;
}

.om-oss-container a {
  color: #7b4c2e;
  text-decoration: underline;
}

.bildegalleri {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.bildegalleri img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.bildegalleri img:hover {
  transform: scale(1.05);
}

iframe {
  width: 100%;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.15);
  margin-top: 1rem;
}

/* === Takkeside === */
.takk-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.takk-container p {
  font-size: 1.1rem;
  color: #444;
  margin: 1rem 0;
  line-height: 1.6;
}

.takkebilde-full {
  max-width: 100%;
  max-height: 600px;
  height: auto;
  width: auto;
  display: block;
  margin: 0 auto 1.5rem auto;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* === Footer === */
.main-footer {
    background-color: #f2f2f2;
    padding: 2rem 1rem;
    font-size: 0.95rem;
    color: #4b2e1e;
    margin-top: 3rem;
}

.footer-innhold {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-kolonne {
    flex: 1 1 200px;
    min-width: 200px;
}

.footer-kolonne h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    color: #7b4c2e;
}

.footer-kolonne ul {
    list-style: none;
    padding: 0;
}

.footer-kolonne li {
    margin: 0.3rem 0;
}

.footer-kolonne a {
    color: #4b2e1e;
    text-decoration: none;
}

.footer-kolonne a:hover {
    text-decoration: underline;
}

.footer-bunntekst {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.85rem;
    color: #999;
}

/* === Kjøpsbetingelser === */
.kjopsbetingelser-wrapper {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    line-height: 1.7;
    font-size: 1.05rem;
}

.kjopsbetingelser-wrapper h1 {
    font-size: 2.2rem;
    color: #4b2e1e;
    margin-bottom: 1.5rem;
    text-align: center;
}

.kjopsbetingelser-wrapper h2 {
    color: #7b4c2e;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    font-size: 1.4rem;
}

.kjopsbetingelser-wrapper p {
    margin-bottom: 1rem;
}

.kjopsbetingelser-wrapper ul {
    margin-left: 1.5rem;
    list-style: disc;
}

.kjopsbetingelser-wrapper a {
    color: #4CAF50;
    font-weight: bold;
    text-decoration: none;
}

.kjopsbetingelser-wrapper a:hover {
    text-decoration: underline;
}

.kjopsbetingelser-wrapper strong {
    font-weight: 600;
}

/* -- Angrerett seksjon -- */
.angrerett-container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.angrerett-container h1,
.angrerett-container h2 {
  color: #4b2e1e;
  text-align: center;
  margin-bottom: 1rem;
}

.angrerett-container p {
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  color: #333;
}

.last-ned-knapp {
  display: inline-block;
  background-color: #7b4c2e;
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  font-size: 1.05rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.last-ned-knapp:hover {
  background-color: #5e3820;
  transform: scale(1.03);
}

/*-- Personvernerklæring --*/
.personvern-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: #fafafa;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  font-family: 'Arial', sans-serif;
  color: #333;
}

.personvern-container h1,
.personvern-container h2 {
  color: #4b2e1e;
}

.personvern-container p,
.personvern-container li {
  line-height: 1.7;
  font-size: 1.05rem;
}

.personvern-container ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

/* -- Kjøpt og person på bestlling.html -- */
.bestillingsfelt input[type="checkbox"] {
  margin-right: 0.5rem;
  vertical-align: middle;
}

.bestillingsfelt label[for="id_godkjenn_vilkar"] {
  font-size: 0.95rem;
}

/*-- tom handlekurv --*/
.meldingscontainer {
  margin: 1rem auto;
  max-width: 600px;
  text-align: center;
}

.melding.error {
  background-color: #ffdddd;
  color: #a10000;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #e2a2a2;
  font-weight: bold;
}
