/* === WRAPPER FÖR LAYOUTEN === */
.product-filter-wrapper,
.filtered-products-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

html, body {
  overflow-x: hidden;
}


* {
  box-sizing: border-box;
}


/* === GLOBALT === */
body {
  font-family: 'Questrial', sans-serif;
  font-weight: 300;
  background-color: #1E201A;
  color: #FAF3EB;
  margin: 0;
}

#product-filter
 {
  width: 100%;
  margin: 0 auto;
}

#filtered-products {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  box-sizing: border-box;
}


/* === FILTER === */
#product-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  background-color: #1E201A;
  padding: 2rem;
  color: #FAF3EB;
}

.filter-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid #444;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #FAF3EB;
}

.filter-btn:hover {
  background: #3a3d30;
}

.filter-btn.active {
  background-color: #FF8431;
  color: #1E201A;
  border-color: #1E201A;
}

.reset-btn {
  background: transparent;
  border: 1px solid #FF8431;
  color: #FAF3EB;
}

.reset-btn:hover {
  background: #FF8431;
  color: #1E201A;
}

/* === PRODUKTGRID === */
#filtered-products {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 1400px;
  width: 100%;
  padding: 2rem;
  box-sizing: border-box;
}

.product-card {
  flex: 0 1 calc(33.333% - 2rem);
  min-width: 300px;
  max-width: 420px;
  background: #FAF3EB;
  border: 1px solid #181a15;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 420px;
}

.slider-track {
  display: flex;
  transition: transform 0.3s ease;
  width: 100%;
}

.slider-item {
  flex: 0 0 100%;
  max-width: 100%;
}

.slider-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  padding: 0;
  border-radius: 0;
}

.slider-prev,
.slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.slider-prev {
  left: 10px;
}

.slider-next {
  right: 10px;
}

.slider-prev::before,
.slider-next::before {
  content: "";
  display: block;
  width: 25px;
  height: 25px;
  border: solid #FF8431;
  border-width: 0 1px 1px 0;
  transform: rotate(135deg);
  transition: all 0.3s ease;
}

/* Högerpilen – rotera rätt håll */
.slider-next::before {
  transform: rotate(-45deg);
}

/* Hover */
.slider-prev:hover::before,
.slider-next:hover::before {
  border-color: #FAF3EB;
}




.product-card h3 {
  font-size: 18px;
  margin: 1rem 1rem 0.5rem;
  color: #181a15;
  font-weight: 300;
}

.product-price {
  margin: 0 1rem 1rem;
  font-weight: 300;
  color: #181a15;
}

.product-card a.button {
  background: transparent;
  color: #181a15;
  text-decoration: none;
  padding: 0.5rem 1rem;
  display: inline-block;
  border: none;
  font-weight: 300;
  transition: color 0.3s;
}


.product-card a.button:hover {
  color: #FF8431; /* Ny färg på hover */
}

.cart-added-msg {
  margin-top: 0.5rem;
  font-size: 13px;
  color: #181a15;
  background: #FAF3EB;
  padding: 0.3rem 0.6rem;
  border-radius: 0;
  display: inline-block;
  animation: fadeIn 0.9s ease;
}

@keyframes fadeInSmooth {
  0% {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  60% {
    opacity: 1;
    transform: translateY(2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 768px) {
  .product-card {
    width: 100%;
    max-width: 100%;
  }
}
