/* === Series + Sealed Slider Styles === */

.sss-container {
  margin-bottom: 2rem;
}

/* Toggle button */
.sss-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
}

.sss-toggle-label {
  font-size: 20px;
  font-weight: 600;
  color: #eabc00;
  margin: 0;
}

.sss-toggle-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.sss-container.is-collapsed .sss-toggle-icon {
  transform: rotate(-90deg);
}

/* Collapsible content */
.sss-content {
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  max-height: 2000px;
  opacity: 1;
}

.sss-container.is-collapsed .sss-content {
  max-height: 0;
  opacity: 0;
}

.sss-row {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

/* Navigation arrows - overlay */
.sss-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
}

.sss-nav.sss-prev {
  left: 10px;
}

.sss-nav.sss-next {
  right: 10px;
}

.sss-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: #fff;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.sss-nav button:hover {
  background: #f5f5f5;
}

/* Slider wrapper */
.sss-slider-wrap {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* Slider container */
.sss-slider {
  padding: 10px 0;
}

/* Each slide */
.sss-slide {
  display: flex;
  height: auto;
  padding: 0;
}

/* Product card */
.sss-card {
  position: relative;
  background: #ffffff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}

.sss-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

/* Product image wrap - aspect ratio */
.sss-thumb {
  position: relative;
  display: block;
  width: 100%;
  padding-top: 130%;
  background: #fff;
  overflow: hidden;
}
.sss-thumb img {
  position: absolute;
  inset: 1rem 0 0 0;
  width: 100%;
  height: calc(100% - 1rem) !important; /* Override Flatsome */
  object-fit: contain;
  transition: transform 0.3s ease;
}
.sss-card:hover .sss-thumb img {
  transform: scale(1.05);
}

/* Out of stock overlay */
.sss-ikke-paa-lager-badge {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  background: rgba(31, 41, 55, 0.75);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  padding: 0.6rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 2;
}

/* Out-of-stock grayscale */
.sss-card:has(.sss-ikke-paa-lager-badge) .sss-thumb img {
  filter: grayscale(0.4);
  opacity: 0.85;
}

/* Product title */
.sss-title {
  font-size: 0.9rem;
  line-height: 1.3;
  font-weight: 600;
  color: #111827;
  margin: 0;
  padding: 0.9rem 0.9rem 0;
  max-height: 2.6em;
  overflow: hidden;
  text-align: left;
}
.sss-title a {
  color: inherit;
  text-decoration: none;
}
.sss-title a:hover {
  color: inherit;
}

/* Product price */
.sss-price {
  display: block;
  margin: 0;
  padding: 0.4rem 0.9rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

/* Add to cart */
.sss-cart {
  margin: 0 0.5rem 1rem;
  margin-top: auto;
  padding: 0;
  text-align: center;
}
.sss-cart .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: 0.25rem;
  background: #fff;
  border: 2px solid #fcd34d;
  font-size: 0.65em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: #fcd34d !important; /* Override */
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.sss-cart .button:hover {
  background: #fbbf24;
  border-color: #fbbf24;
  transform: translateY(-1px);
  color: #fff !important;
}
.sss-cart .button.loading {
  opacity: 0.7;
  pointer-events: none;
}
.sss-cart .button.added {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff !important;
}

/* Skjul "Se kurv" link */
.sss-cart .added_to_cart {
  display: none !important;
}

@media (min-width: 768px) {
  .sss-cart {
    margin: 0 0.9rem 1rem;
    margin-top: auto;
  }
  .sss-cart .button {
    font-size: 0.8em;
    height: 44px;
    padding: 0 1.5rem;
  }
}

/* Responsive tweaks */
@media (max-width: 480px) {
  .sss-nav { display: none; }
  .sss-title { font-size: 0.85rem; }
}

/* Pagination bullets - only show on mobile */
.sss-pagination {
  display: none;
  text-align: center;
  width: 100%;
  margin-top: 10px;
}
.sss-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #ccc;
  opacity: 1;
  margin: 0 4px;
}
.sss-pagination .swiper-pagination-bullet-active {
  background: #333;
}

@media (max-width: 480px) {
  .sss-pagination { display: block; }
}

/* Hide until initialized */
.sss-slider { visibility: hidden; }
.sss-slider.is-ready { visibility: visible; }

/* Skjul ved filtrering */
.sss-hidden-by-filter { display: none !important; }

/* Basic Swiper sanity in case theme overrides */
.sss-slider-wrap .swiper-wrapper { display: flex; }
.sss-slider-wrap .swiper-slide { height: auto; }

#vbpt {
	display:none !important;
}
