.product-swiper-main {
  aspect-ratio: 16/9;
  width: 100%;
  min-width: 0;
  position: relative;
  background: #f7f7f7;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.product-swiper-main .swiper-wrapper,
.product-swiper-main .swiper-slide {
  height: 100%;
}

.service-hero-text-inner-top {
  p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
  }
}
.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
  border-radius: 0;
  display: block;
}
/* Swiper thumbnail gallery under main image */
.product-swiper-thumbs {
  margin-top: 16px;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}
.product-swiper-thumbs .swiper-slide {
  width: 90px;
  height: 56px;
  opacity: 0.5;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s, opacity 0.2s;
}
.product-swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #007c4a;
}
.slider-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Grid layout for hero section */
.hero-cols {
  display: grid;
  grid-template-columns: 2fr 2fr;
  gap: 40px;
  align-items: stretch;
  margin-top: 5rem;
}
.product-slider-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.product-swiper-main {
  aspect-ratio: 16/9;
  width: 100%;
  position: relative;
}
.product-swiper-main .swiper-wrapper,
.product-swiper-main .swiper-slide {
  height: 100%;
}

.product-swiper-thumbs {
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
.product-swiper-thumbs .swiper-wrapper {
  width: 100%;
}
.product-swiper-thumbs .swiper-slide {
  width: 90px;
  height: 56px;
  opacity: 0.5;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s, opacity 0.2s;
  margin-right: 8px;
}
.product-swiper-thumbs .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #007c4a;
}
.slider-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-text-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 900px) {
  .hero-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
/* Modern hero flex and slider styles for single-services.php */
.modern-hero-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: stretch;
}
.product-slider-half {
  flex: 1 1 50%;
  min-width: 320px;
  max-width: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Custom navigation arrows */
.product-swiper-main .swiper-button-next,
.product-swiper-main .swiper-button-prev {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-swiper-main .swiper-button-next:after,
.product-swiper-main .swiper-button-prev:after {
  display: none;
}

.product-swiper-main .swiper-button-next svg,
.product-swiper-main .swiper-button-prev svg {
  width: 20px;
  height: 20px;
}

.product-swiper-main .swiper-button-next:hover,
.product-swiper-main .swiper-button-prev:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.product-swiper-main .swiper-button-next {
  right: 16px;
}

.product-swiper-main .swiper-button-prev {
  left: 16px;
}

.product-swiper-main .swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .product-swiper-main .swiper-button-next,
  .product-swiper-main .swiper-button-prev {
    width: 36px;
    height: 36px;
  }

  .product-swiper-main .swiper-button-next svg,
  .product-swiper-main .swiper-button-prev svg {
    width: 16px;
    height: 16px;
  }

  .product-swiper-main .swiper-button-next {
    right: 8px;
  }

  .product-swiper-main .swiper-button-prev {
    left: 8px;
  }
}

.service-hero-text-half {
  flex: 1 1 50%;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .modern-hero-flex {
    flex-direction: column;
    gap: 24px;
  }
}
/* Single Tjänster Styles */
.service-single-page {
  background: var(--accent-color);
}

/* Hero Section */
.service-hero {
  color: var(--primary-color);
  padding-top: 12rem;
  background-image: url("img/smalandtimberbg.png");
  padding-bottom: var(--spacing-xl);

  @media (width <= 768px) {
    margin-top: var(--spacing-4xl);
  }
}

@media (width > 1024px) {
  .service-hero {
    padding-bottom: 0;
  }
  .service-hero:has(+ .service-content) {
    margin-bottom: -7%;
  }
  .service-hero:has(+ .service-content) + .service-content {
    padding-top: 12%;
    padding-bottom: 23rem;
  }
}

.service-hero-content {
  padding-top: var(--spacing-xl);

  .product-slider {
    max-width: 50%;
    @media (width <= 1024px) {
      max-width: 100%;
    }
  }

  .main-image-wrapper {
    position: relative;
    padding-bottom: var(--spacing-sm);
    .slider-arrow {
      border: none;
      background-color: transparent;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      cursor: pointer;

      &.prev {
        left: -1.25rem;
      }

      &.next {
        right: -1.25rem;
      }
    }

    .main-image-container {
      #main-image-link {
        display: block;
        width: 100%;
        height: auto;
      }
      #main-image {
        aspect-ratio: 3/2;
        object-fit: cover;
        width: 100%;
        height: auto;
        border-radius: var(--border-radius-medium);
      }
    }
  }

  .thumbnail-wrapper {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-md);
    .thumbnail {
      width: 80px;
      height: 80px;
      aspect-ratio: 1/1;
      object-fit: cover;
      cursor: pointer;
      border-radius: var(--border-radius-medium);
    }
    .thumbnail.active {
      border: 2px solid var(--primary-color);
    }
  }
}
.service-hero-container {
  display: flex;
  justify-content: space-between;
  flex-direction: column;

  .service-hero-content {
    display: flex;
    gap: var(--spacing-2xl);
    align-items: stretch;

    .service-hero-image {
      max-width: 45%;
      border-radius: var(--border-radius-medium);
      object-fit: cover;

      @media (width <= 1024px) {
        max-width: 100%;
      }
    }

    .service-hero-text {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: var(--spacing-2xl);

      .service-hero-text-inner-bottom {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
      }
    }
    @media (width <= 1024px) {
      flex-direction: column;
      gap: var(--spacing-xl);
    }
  }
}

.service-hero-text-inner-bottom-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 3rem;
}

.service-breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-black);
}

.service-breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
}

.service-breadcrumb span {
  margin: 0 0.5rem;
}

.service-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-subtitle {
  font-size: 1.2rem;
  max-width: 600px;
}

/* Main Content Layout */
.service-content {
  padding: 3rem 0;
  background-color: var(--secondary-color);
}

.service-layout {
  display: grid;
  /* grid-template-columns: 3fr 2fr; */
  gap: 4rem;
  align-items: start;
  display: flex;
  justify-content: center;
}

/* Gallery */
.service-gallery {
  margin-top: var(--spacing-2xl);
  padding-bottom: var(--spacing-md);
  display: flex;
  max-width: 100%;
  gap: var(--spacing-lg);
  scroll-behavior: smooth;
  padding-inline: var(--spacing-lg);
  scrollbar-color: var(--primary-color) transparent;
  overflow-x: auto;

  .service-gallery-image-wrapper {
    flex: 0 0 auto;
    width: calc(30% - (2 * var(--spacing-lg) / 3));
    a {
      .service-gallery-image {
        border-radius: var(--border-radius-medium);
        width: 100%;
        aspect-ratio: 3/2;
        height: auto;
        min-height: 100%;
        object-fit: cover;
      }
    }
  }

  @media (width <= 1024px) {
    gap: var(--spacing-md);
    .service-gallery-image-wrapper {
      width: calc(40% - (2 * var(--spacing-md) / 3));

      @media (width <= 768px) {
        width: calc(80% - (2 * var(--spacing-md) / 3));
      }
    }
  }

  .service-gallery-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
}

.service-gallery-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-image a:hover img {
  transform: scale(1.05);
}

.product-thumbnails {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.product-ga .gallery-image {
  width: calc(25% - 0.5rem);
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}

/* Product Info */
.service-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 60%;
  background: var(--accent-color);
  padding: var(--spacing-xl) var(--spacing-lg);
  border-radius: var(--border-radius-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.service-info h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-hero-text p {
  line-height: 1.6;
  margin-bottom: 0;

  word-break: auto-phrase;
}

.service-cta {
  padding: 2rem 0;
  border-top: 1px solid var(--primary-color);
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Tabs */
.service-tabs {
  border-radius: 5px;
}

.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--secondary-color);
  overflow-x: auto;
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

.tab-content {
  min-height: 200px;
  padding: var(--spacing-lg) 0;

  p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Specifications Table */
.specifications-table {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.spec-row {
  display: flex;
  gap: var(--spacing-xl);
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--text-white);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  width: fit-content;
  min-width: 100%;

  @media (width <= 768px) {
    min-width: 100%;
  }
}

.spec-name {
  font-weight: 600;
  color: var(--primary-color);
}

.spec-value {
  color: #495057;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .service-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-images {
    position: static;
  }

  .service-info {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .service-hero {
    padding: var(--spacing-2xl) 0 var(--spacing-lg) 0;
  }

  .service-content {
    padding: 2rem 0;
  }

  .tab-nav {
    flex-wrap: wrap;
  }

  .tab-btn {
    padding: 0.8rem 1rem;
    font-size: 0.9rem;
  }

  .modal-content {
    width: 95%;
    margin: 1rem;
  }

  .modal-header,
  .modal-body {
    padding: 1.5rem;
  }

  .product-thumbnails {
    justify-content: center;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .spec-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
  }
}

/* CTA Section */
.service-cta-section {
  background: var(--accent-color);
  background-image: url("img/smalandtimberbg.png");
  padding: 40px 0 9rem 0;
}

.service-cta-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10rem;
  align-items: center;
  /* max-width: 100%; */
  margin-top: -9rem;

  @media (width <= 1024px) {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 0;
  }
}

.service-staff-member {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: var(--primary-color);

  color: var(--primary-color);
  .service-staff-image {
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    object-fit: cover;
    aspect-ratio: 6/7;
    max-width: 320px;
  }

  .service-staff-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--primary-color);
  }
}
.service-staff-wrapper {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .service-staff-wrapper {
    flex-direction: column;
    gap: 2rem;
  }
}

.service-staff-name {
}

/* Contact form style */
/* Responsive for CTA Section */
@media (max-width: 1024px) {
  .service-cta-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .service-cta-title {
    font-size: 4rem;
  }

  .service-cta-image img {
    height: 300px;
  }

  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .service-cta-section {
    padding: 3rem 0;
  }

  .service-cta-title {
    font-size: 3rem;
  }

  .service-cta-text {
    font-size: 1.1rem;
  }

  .service-cta-image img {
    height: 250px;
  }
}

/* Reseller CTA Section */
.reseller-cta-section {
  padding: 8rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2a5f3a 100%);
  position: relative;
  overflow: hidden;
}

.reseller-cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("img/smalandtimberbg.png");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 1;
}

.reseller-cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.reseller-cta-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.reseller-cta-title {
  color: var(--secondary-color);
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.reseller-cta-text {
  color: var(--secondary-color);
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0;
  opacity: 0.95;
  max-width: 600px;
}

@media (max-width: 768px) {
  .reseller-cta-section {
    padding: 5rem 0;
  }

  .reseller-cta-content {
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .reseller-cta-text {
    font-size: 1.1rem;
  }
}
