/*
Theme Name: Nordic Affiliate
Description: We take care of all the technical stuff and let you take care of the exciting stuff.
Tags: blog, affiliate marketing, partner-ads, nordic affiliate
Text Domain: nordic-affiliate-theme
Author: Nordic Affiliate
Author URI: https://nordicaffiliate.dk
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Copyright (C) 2023 Nordic Affiliate
Requires PHP: 7.2
Tested up to: 5.8
*/

@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;900&display=swap");
* {
  font-family: "Lato", sans-serif;
  box-sizing: border-box;
}

body {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
}

h1 {
  font-size: 50px;
}

h2 {
  font-size: 32px;
}

p {
  line-height: 1.77;
  font-size: 18px;
}

ul {
  list-style: none;
}

a {
  color: black;
}

.desktop-nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  width: 100%;
}

.desktop-nav ul li {
  font-weight: bold;
}

.desktop-nav ul li a {
  color: black;
  text-decoration: none;
  font-size: 20px;
}

.post-previews {
  display: flex;
  flex-wrap: wrap;
  margin: 50px 0;
}

.post-previews .post-preview {
  width: 25%;
  font-size: 16px;
  padding: 0 12px;
  margin-bottom: 32px;
}

.post-previews .post-preview .post-preview__thumb {
  width: 100%;
  height: 200px;
}

.post-previews .post-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.post-previews .post-preview h2 {
  font-size: 16px;
}

.products {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.product {
  width: 25%;
  padding: 12px;
}

.product .product-image {
  display: block;
  margin: 12px auto;
  max-width: 100%;
  height: 220px;
}

.product .product-title {
  font-weight: bold;
  height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.product .product-description {
  height: 60px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

.product .product-link {
  background: #3d9454;
  text-decoration: none;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  display: block;
  text-align: center;
  font-weight: bold;
}

.product-page .product-container {
  display: flex;
  width: 100%;
  padding-top: 32px;
  padding-bottom: 32px;
}

.product-container__image {
  width: 50%;
  padding: 32px;
  display: flex;
  justify-content: center;
}

.product-container__image img {
  max-width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.product-container__info {
  padding-left: 12px;
  width: 50%;
}

.product-container__info--title {
  font-size: 32px;
  font-weight: bold;
}

.product-container__info--description {
  margin: 22px 0;
}

.product-container__info--price {
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 20px;
}

.product-container__info--link {
  background: #3d9454;
  color: white;
  font-weight: bold;
  padding: 17px 80px;
  font-size: 22px;
  border-radius: 6px;
  box-shadow: black 0px 10px 13px -9px;
  text-decoration: none;
}

.burger div,
.close-burger div {
  width: 35px;
  height: 5px;
  background-color: black;
  margin: 6px 0;
}

.mobile-menu {
  height: 0;
  overflow: hidden;
  width: 100%;
  background: white;
}

.mobile-menu.open {
  height: 100%;
}

.mobile-menu.open ul {
  padding: 1em;
  padding-top: 24px;
}

.mobile-menu ul li {
	opacity: 0;
	margin-left: -8px;
    transition: opacity 0.3s ease, margin-left 0.3s ease;

}

.mobile-menu.open ul li {
  opacity: 1;
  font-size: 24px;
  font-weight: bold;
  padding: 20px 0;
  margin-left: 0px;
  border-bottom: 1px solid #e2e2e2;
}

.mobile-menu.open ul li a {
  text-decoration: none;
}

.mobile-nav {
  width: 100%;
  display: none;
  align-items: flex-end;
  flex-direction: column;
  padding-bottom: 1em;
}

.mobile-nav button {
  background: white;
  border: none;
  margin-top: 6px;
}

@media screen and (max-width: 760px) {
	.mobile-nav {
		  display: flex;
	}
	.desktop-nav {
		display: none;
	}

  .product {
    width: 50%;
  }
  .product-container {
    flex-direction: column;
    padding-top: 0px;
  }

  .product-container__image,
  .product-container__info {
    width: 100%;
    padding: 0 12px;
  }

  .post-previews .post-preview {
    width: 50%;
  }
}
