/* ========== BASIS ========== */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #1a1a1a;
  background: #ffffff;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

section, header, footer, nav {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* ========== HEADER ========== */
header {
  padding: 15px 20px;
  border-bottom: 1px solid #dddddd;
  background: #ffffff;
}

#logo {
  max-width: 160px;
  margin-bottom: 15px;
}

/* ========== NAV ========== */
nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  @media (min-width: 390px) {
    flex-direction: row;
    gap: 0.5rem;
  }
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  font-size: 14px;
}

nav ul li a {
  text-decoration: none;
  color: #1a1a1a;
}

nav ul li a:hover {
  color: #0082c3;
}

/* ========== HAMBURGER ========== */
.hamburger {
  display: block;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;

  @media (min-width: 768px) {
    display: none;
  }
}

/* ========== MENU ========== */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  width: 100%;
  padding: 1em;
  border-bottom: 1px solid #ddd;

  @media (min-width: 768px) {
    display: block;
    position: static;
    padding: 0;
    border: none;
  }
}

.nav ul {
  display: flex;
  flex-direction: column;
  gap: 1em;

  @media (min-width: 768px) {
    flex-direction: row;
  }
}

.nav.show {
  display: block;
}

/* ========== SEARCH ========== */
#site-search {
  padding: 6px 10px;
  border: 1px solid #dddddd;
  border-radius: 4px;
}

/* ========== MAIN ========== */
main {
  padding: 20px;
}

/* ========== PRODUCT AFBEELDING ========== */
.item-image-parent {
  margin-bottom: 30px;
}

.item-image-main {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  position: relative;

  @media (min-width: 768px) {
    width: 50%;
  }
}

.item-image-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  display: block;
  pointer-events: none;
}

.item-image-main.fade-out img {
  opacity: 0;
}

/* ========== MEDIA GALLERY ========== */
.media-gallerij {
  display: flex;
  gap: 1em;
  list-style: none;
  padding: 0;
  margin: 20px 0;

  animation-name: move;
  animation-duration: 5s;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
}

.media-gallerij li {
  width: 20%;
}

.media-gallerij img {
  width: 80%;
  height: auto;
}

/* ========== THUMBNAILS ========== */
.thumbnail {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  border: 2px solid transparent;
  margin: 0 5px;
  transition: border 0.3s;
}

.thumbnail.active {
  border-color: #007BFF;
}

.thumbnail:focus {
  outline: none;
}

/* ========== GALLERY BUTTONS ========== */
.media-gallery-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 5px;
}

.media-gallery-button:hover {
  background-color: rgba(0,0,0,0.8);
}

/* ========== ANIMATION ========== */
@keyframes move {
  from { transform: translateX(0); }
  to { transform: translateX(300px); }
}

/* ========== PRODUCT INFO ========== */
h1 {
  font-size: 26px;
  margin-bottom: 10px;
}

#price {
  font-weight: bold;
  color: #0082c3;
  font-size: 20px;
}

/* ========== SELECT ========== */
.select-items {
  margin-top: 20px;
}

.change-color h2,
.change-size label {
  font-size: 16px;
  margin-bottom: 10px;
  display: block;
}

select {
  padding: 8px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  width: 100%;
  max-width: 200px;
}

/* ========== DESCRIPTION ========== */
.description {
  margin-top: 20px;
}

.description h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.description ul {
  padding-left: 20px;
}

.description li {
  margin-bottom: 6px;
  font-size: 14px;
  color: #6f6f6f;
}

/* ========== BUTTON ========== */
.round-black-btn {
  background: #0082c3;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  display: inline-block;
  margin-top: 20px;
}

.round-black-btn:hover {
  background: #005f99;
}

/* ========== TABS ========== */
.tab-pane {
  margin-top: 30px;
  padding: 20px;
  background: #f5f5f5;
  font-size: 14px;
  line-height: 1.6;
  color: #6f6f6f;
}

/* ========== FOOTER ========== */
footer {
  margin-top: 40px;
  background: #f5f5f5;
  padding: 30px; 
  text-align: right;

  @media (min-width: 32em) {
    text-align: left;
  }
}

/* Footer menu - Mobile First (verticaal) */
.footer-menu ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px; /* ruimte tussen items */

  @media (min-width: 32em) {
    flex-direction: row; /* horizontaal op grotere schermen */
    gap: 20px;           /* ruimte tussen horizontale items */
  }
}

.footer-menu li {
  margin: 0; /* verwijderen van verticale spacing, gebruik gap in flexbox */
}

.footer-menu a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 14px;
}

.footer-menu a:hover {
  color: #0082c3;
}


/* ========== SOCIAL ========== */
.social-buttons a {
  display: inline-block;
  margin-right: 10px;
  padding: 10px;
  background: #0082c3;
  color: white;
  border-radius: 4px;
  text-decoration: none;
}

.social-buttons a:hover {
  background: #005f99;
}

/* ========== NEWSLETTER ========== */
.footer-newsletter input {
  padding: 8px;
  width: 100%;
  max-width: 250px;
  border: 1px solid #dddddd;
  border-radius: 4px;
  margin-bottom: 10px;
}

.footer-newsletter button {
  background: #0082c3;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
}

.footer-newsletter button:hover {
  background: #005f99;
}
