main.single-product {
  padding-top: calc(var(--top-bar-height) + var(--header-height));
}

/* Product background */
.product {
  background-color: #f9f9f9;
}

/* Breadcrumbs wrapper - Own row above product */
.product-breadcrumbs-wrapper {
  padding-top: var(--space-4);
  padding-bottom: var(--space-3);
}

/* Breadcrumbs styling */
.product-breadcrumbs {
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;

  a {
    color: var(--text-muted);
    text-decoration: none;

    &:hover {
      color: var(--primary-color);
    }
  }
}

/* Override large title on product page sections */
main.single-product
  .smort-product-slider.large-title
  .smort-product-slider-title {
  font-size: var(--text-3xl);
}

main.single-product .smort-product-slider-title {
  font-size: var(--text-3xl);
  color: var(--black);
}

main.single-product .stekhall-content-title {
  font-size: var(--text-3xl);
}

main.single-product .single-product-reviews-title {
  font-size: var(--text-3xl);
}
.woocommerce-notices-wrapper {
  width: 100%;
  margin: var(--space-4) auto;
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--color-success);
  display: flex;
  .woocommerce-message-smort {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-8);
    .button.wc-forward {
      display: none;
    }
  }
  &:empty {
    display: none;
  }
}
.product {
  padding: var(--space-10) 0;
}
.product-columns-wrapper {
  /* padding-top: var(--header-height); */
  display: grid;
  grid-template-columns: 55% 45%;
}
.product-image-gallery {
  display: flex;
  flex-direction: column;
  max-height: 800px;
  overflow-y: scroll;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
  -ms-overflow-style: none; /* Hide scrollbar for IE/Edge */
}

.product-image-gallery::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}
main.single-product {
  background-color: var(--background-color-2);
}
/* Product Swiper Slider */
.product-slider-wrapper {
  position: relative;
  max-width: 100%;
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.product-slider-wrapper .made-in-sweden-badge {
  background-color: var(--accent-color);
  border-radius: var(--border-radius-lg);
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;

  p {
    color: var(--white);
    margin: 0;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-sm);
  }
}

.product-slider-wrapper .discount-percentage-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
}

/* Thumbnail Slider (LEFT SIDE - VERTICAL) */
.product-thumbs-slider {
  flex: 0 0 100px;
  order: 1;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;

  .swiper-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .swiper-slide {
    width: 100px !important;
    height: 100px !important;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    border: 2px solid transparent;
    transition:
      opacity 0.3s ease,
      border-color 0.3s ease;
    flex-shrink: 0;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    &:hover {
      opacity: 0.9;
    }

    &.swiper-slide-thumb-active {
      opacity: 1;
      border-color: var(--primary-color);
    }
  }
}

/* Fade overlay at bottom of thumbnails */
.product-thumbs-fade {
  position: absolute;
  bottom: 0px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.9) 100%
  );
  pointer-events: none;
  z-index: 5;
}

/* Thumbnail navigation arrows */
.product-thumbs-button-prev,
.product-thumbs-button-next {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  background-color: var(--white);
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);

  svg {
    stroke: var(--primary-color);
  }

  &:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);

    svg {
      stroke: var(--white);
    }
  }

  &.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
  }
}

.product-thumbs-button-prev {
  top: 10px;
}

.product-thumbs-button-next {
  bottom: 10px;
}

/* Main Product Slider (RIGHT SIDE) */
.product-main-slider {
  flex: 1;
  order: 2;
  border-radius: var(--border-radius);
  overflow: hidden;
  background-color: #f5f5f5;
  position: relative;
  min-height: 0;

  .swiper-slide {
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;

    a {
      display: flex;
      width: 100%;
      height: 100%;
      align-items: center;
      justify-content: center;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  }
}

/* Main slider navigation arrows */
.product-main-button-prev,
.product-main-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: var(--white);
  border: 1px solid var(--color-border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);

  svg {
    stroke: var(--primary-color);
  }

  &:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);

    svg {
      stroke: var(--white);
    }
  }

  &.swiper-button-disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
  }
}

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

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

@media screen and (width <= 992px) {
  .product-columns-wrapper {
    grid-template-columns: 1fr;
  }

  .product-slider-wrapper {
    flex-direction: column;
    gap: var(--space-3);
    width: 100%;
    max-width: 100%;
  }

  .product-thumbs-slider {
    flex: 0 0 auto;
    height: auto;
    order: 2;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    .swiper-wrapper {
      flex-direction: row;
      gap: 10px;
    }

    .swiper-slide {
      width: 80px !important;
      height: 80px !important;
      flex-shrink: 0;
    }
  }

  .product-main-slider {
    order: 1;
    width: 100%;
    max-width: 100%;

    .swiper-slide {
      width: 100%;

      img {
        width: 100%;
        height: auto;
        object-fit: cover;
      }
    }
  }

  .product-summary {
    padding: var(--space-6) var(--space-4);

    .product_title {
      font-size: 32px;
    }

    .price {
      font-size: 28px;

      del {
        font-size: 20px;
      }
    }
  }
}

@media screen and (width <= 768px) {
  .product-slider-wrapper {
    width: 100%;
    padding: 0;
    flex-direction: column;
  }

  .product-main-slider {
    width: 100%;
    order: 1;

    .swiper-slide {
      width: 100% !important;
      height: auto !important;
      aspect-ratio: 1/1;

      img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        display: block;
      }
    }
  }

  .product-thumbs-slider {
    width: 100%;
    padding: 0 var(--space-4);
    order: 2;
    height: 70px !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    position: relative;
    -webkit-overflow-scrolling: touch;

    .swiper-wrapper {
      flex-direction: row !important;
      gap: 10px !important;
      display: flex !important;
    }

    .swiper-slide {
      width: 60px !important;
      height: 60px !important;
      flex-shrink: 0 !important;
    }
  }

  /* Hide thumbnail navigation arrows in mobile */
  .product-thumbs-button-prev,
  .product-thumbs-button-next {
    display: none !important;
  }

  .product-thumbs-fade {
    display: none !important;
  }

  .product-summary {
    .product_title {
      font-size: 28px;
    }

    .price {
      font-size: 24px;

      del {
        font-size: 18px;
      }
    }
  }
}

.product-summary {
  display: flex;
  flex-direction: column;
  padding: 0 var(--space-6) var(--space-4) var(--space-10);
  box-sizing: border-box;
  max-height: none;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  line-height: 1.8;
  gap: 0;

  form.cart button {
    width: 100%;
  }

  /* Checkmarks only on li elements */
  ul li {
    padding-left: var(--space-6);
    position: relative;
    margin-bottom: var(--space-2);
    list-style: none;

    &::before {
      content: "✓";
      font-size: 18px;
      color: var(--color-success);
      position: absolute;
      left: 0;
      top: 0;
      font-weight: 700;
    }
  }

  /* Remove checkmark from ul itself */
  ul {
    list-style: none;
    padding-left: 0;

    &::before {
      content: none;
    }
  }

  /* Product title spacing */
  .product_title {
    margin-bottom: var(--space-1);
    margin-top: 10px;
    line-height: 1.2;
    font-size: 35px;
    font-weight: 700;
    text-transform: none;
    font-family: var(--font-heading);
  }

  /* Product subtitle - same styling as loop */
  .product-subtitle {
    font-size: var(--text-xs);
    color: var(--secondary-color);
    margin: 0 0 var(--space-1) 0;
    font-weight: 400;
    line-height: 1.4;
  }

  /* Price spacing */
  .price {
    margin-bottom: var(--space-2);
    margin-top: 0;
    font-size: var(--text-2xl);
    font-weight: 700;
    font-family: var(--font-heading);
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    color: var(--primary-color);

    del {
      font-size: var(--text-lg);
      color: var(--text-muted);
      font-weight: 400;
      text-decoration: line-through;
    }

    ins {
      text-decoration: none;
    }

    .woocommerce-Price-amount {
      color: #526f7a;
      font-size: 1.7rem;
    }
  }

  /* Product description wrapper */
  .product-description-wrapper {
    margin-bottom: var(--space-3);
    margin-top: var(--space-2);
  }

  .product-description-content {
    font-size: var(--text-sm);
    line-height: 1.7;
    color: var(--text-muted);
    transition: max-height 0.3s ease;
    overflow: hidden;

    p {
      margin-bottom: var(--space-2);

      &:last-child {
        margin-bottom: 0;
      }
    }

    ul,
    ol {
      margin: var(--space-2) 0;
      padding-left: 0;

      li {
        margin-bottom: var(--space-1);
      }
    }

    &.collapsed {
      max-height: 150px;
    }
  }

  .product-description-toggle {
    margin-top: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-3xl);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    width: fit-content;

    &:hover {
      background-color: var(--primary-color);
      color: var(--white);
    }
  }

  .product-description-arrow {
    transition: transform 0.3s ease;
  }

  .product-description-toggle.expanded .product-description-arrow {
    transform: rotate(180deg);
  }

  /* Cart form spacing */
  form.cart {
    margin: var(--space-3) 0;
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-light);

    .quantity {
      margin-bottom: 0;
    }
  }

  /* Stock status - Hide default WooCommerce stock */
  .stock {
    display: none !important;
  }

  /* Product delivery info */
  .product-delivery-info {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-3);
    padding: var(--space-3) 0;
    border-top: 1px solid var(--color-border-light);
    flex-wrap: wrap;
  }

  .product-delivery-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-color);

    @media (width <= 768px) {
      flex: 1 1 100%;
      font-size: var(--text-xs);
    }
  }

  .product-delivery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-success);
    flex-shrink: 0;
  }

  .product-service-icon {
    flex-shrink: 0;
    stroke: var(--text-color);
    stroke-width: 2;
  }

  /* USP Section */
  .product-usps {
    display: flex;
    flex-direction: row;
    gap: var(--space-3);
    margin-top: var(--space-2);
    flex-wrap: nowrap;
  }

  .product-usp-item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-xs);
    white-space: nowrap;
  }

  .product-usp-icon {
    flex-shrink: 0;
    stroke: var(--color-success);
    stroke-width: 3;
    width: 16px;
    height: 16px;
  }

  @media (width <= 768px) {
    .product-usps {
      flex-wrap: wrap;
    }

    .product-usp-item {
      white-space: normal;
      font-size: 11px;
    }
  }

  /* Modern Review Link - Highlighted */
  .product-reviews-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    margin-top: var(--space-4);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--primary-color);
    font-size: var(--text-base);
    font-weight: 600;
    transition: all 0.3s ease;

    &:hover {
      background: linear-gradient(135deg, #ffffff 0%, #fffef8 100%);
      border-color: var(--primary-color);
      transform: translateY(-2px);

      .product-reviews-link-arrow {
        transform: translateY(2px);
      }
    }

    .product-reviews-link-content {
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: var(--space-3);

      @media (width <= 768px) {
        flex-direction: column;
        gap: var(--space-2);
        align-items: flex-start;
      }
    }

    .product-reviews-link-stars {
      display: flex;
      gap: var(--space-1);
      align-items: center;
    }

    .review-link-star {
      flex-shrink: 0;
    }

    .product-reviews-link-text {
      font-size: var(--text-sm);
      font-weight: 500;
      color: var(--text-color);
      white-space: nowrap;
    }

    .product-reviews-link-arrow {
      flex-shrink: 0;
      stroke: var(--primary-color);
      transition: transform 0.3s ease;
    }
  }

  /* Product meta (SKU, categories, tags) */
  .product_meta {
    margin-top: var(--space-2);
    padding-top: var(--space-3);

    span {
      display: block;
      margin-bottom: var(--space-1);
      line-height: 1.4;
    }
  }

  /* Rating */
  .woocommerce-product-rating {
    margin-bottom: var(--space-2);
    margin-top: 0;
  }

  /* General paragraph spacing */
  p {
    margin-bottom: var(--space-2);
    margin-top: 0;
    line-height: 1.8;
  }

  /* Headings in product summary */
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    margin-top: var(--space-6);
    margin-bottom: var(--space-4);
    line-height: 1.4;
  }

  h1:first-child,
  h2:first-child,
  h3:first-child {
    margin-top: 0;
  }
}

/* Star Rating Styles */
.single-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
}

.single-product-stars {
  display: flex;
  gap: 4px;
  align-items: center;
}

.single-product-star {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.single-product-star.filled {
  fill: #ffd707;
  stroke: #ffd707;
}

.single-product-star.empty {
  fill: none;
  stroke: var(--black);
}

/* Product Description Accordion */
.product-description-wrapper {
  margin-bottom: var(--space-4);
}

/* Old accordion styles removed - now using direct content with "Läs mer" */

/* Product summary content - REMOVED OLD PRICE STYLING */

/* Quantity input */
.single-product .product-summary form.cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: 0;
  border-top: none;

  .quantity {
    display: none; /* Hide quantity selector for now */
  }

  /* Add to cart button - same style as primary button */
  button.single_add_to_cart_button {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background-color: var(--primary-color);
    color: var(--color-text-light);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);

    .button-icon svg,
    .button-icon svg g,
    .button-icon svg path {
      stroke: #000000 !important;
      filter: none !important;
    }

    &:hover {
      background-color: var(--accent-color);
      border-color: var(--accent-color);
    }
  }

  @media (width <= 1024px) {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
  }
}
.woocommerce div.product form.cart div.quantity {
  display: flex;
  height: 36px;
  border: none;
  align-items: center;
}

.woocommerce .quantity .qty {
  width: 44px;
  text-align: center;
  font-family: "CustomHeadingFont" !important;
  font-size: 1.2rem;
  border: 0px;
}

/* Meta wrapper - compact layout */
.product_meta-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3) 0;
}

/* Meta */
.product_meta {
  display: flex;
  padding: 0;
  gap: var(--space-1);
  flex-wrap: wrap;
  border: none;
  margin: 0;

  .product_meta-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
  }

  .product_meta-label {
    font-size: var(--text-sm);
    color: var(--gray-600);
    white-space: nowrap;
  }

  .product_meta-inner {
    gap: var(--space-1);
    display: flex;
    flex-wrap: wrap;
  }
  .posted_in,
  .tagged_as {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-1);
  }
  a {
    padding: 3px 10px;
    border-radius: var(--border-radius-full);
    display: block;
    text-decoration: none;
    font-size: var(--text-xs);
    transition: all 0.2s ease;
    background-color: var(--background-color-2);
    color: var(--primary-color);
    border: 1px solid var(--color-border-light);

    &:hover {
      background-color: var(--white);
      border-color: var(--primary-color);
    }
  }
}

/* SKU styling */
.sku_wrapper {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--gray-500);

  .sku {
    color: var(--gray-600);
  }
}
/* Grundläggande styling för desktop */
.product-columns-wrapper {
  display: flex;
  gap: 0px;

  @media (width <= 768px) {
    flex-direction: column;
  }
}

.product-image-gallery {
  position: sticky;
  top: 160px;
  flex: 0 0 55%; /* Galleri 60% */

  @media (width <= 768px) {
    position: static;
  }
}

@media (width <= 768px) {
  .product-summary {
    padding: 0;
  }
}

/* Stock colors */
p.stock.in-stock:before,
p.stock.available-on-backorder::before {
  content: "";
  width: 10px;
  height: 10px;
  aspect-ratio: 1/1;
  background-color: var(--color-success) !important;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
}
p.stock.out-of-stock:before {
  content: "";
  width: 10px;
  height: 10px;
  aspect-ratio: 1/1;
  background-color: var(--color-error) !important;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
}

/* Stekhällar produktspecifikation område */
.stekhall-content-wrapper {
  padding-block: var(--space-8);
  background-color: var(--white);

  .stekhall-content-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  .stekhall-content-title {
    font-size: var(--text-2xl);
    margin: 0;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
  }
}
.stekhall-content {
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  white-space: nowrap;
  gap: var(--space-4);
  align-items: center;

  .stekhall-content-item {
    width: min-content;
    display: flex;
    flex-direction: column;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--border-radius-lg);
    background-color: #fff;
    max-height: min-content;

    .stekhall-content-item-title {
      font-size: var(--text-xl);
      letter-spacing: 0.05em;
      font-family: var(--font-body);
    }
    .stekhall-content-item-value {
      font-size: var(--text-md);
    }
  }

  @media (width <= 768px) {
    white-space: normal;
    flex-wrap: wrap;
    overflow-x: auto;

    .stekhall-content-item {
      flex: 1 1 calc(50% - var(--space-2));
      width: auto;
      min-width: 0;

      .stekhall-content-item-title {
        font-size: var(--text-base);
        white-space: normal;
        word-wrap: break-word;
      }
      .stekhall-content-item-value {
        font-size: var(--text-sm);
        white-space: normal;
        word-wrap: break-word;
      }
    }
  }
}

.single-product-mid-area-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-10);

  &:has(.youtube-video-wrapper):has(.upsell-products-wrapper) {
    position: relative;
    grid-template-columns: 2fr 1fr;
    & .youtube-video-wrapper {
      position: sticky;
      top: 160px;
      display: flex;
      flex-direction: column;
      height: fit-content;
    }
    @media (width <= 768px) {
      grid-template-columns: 1fr;
    }
  }
  @media (width <= 768px) {
    grid-template-columns: 1fr;
    & > *:first-child {
      order: 1;
    }
  }
}

/* Youtube video & popup */
.youtube-video-wrapper {
  .youtube-video-container {
    height: auto;
  }
  iframe {
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 1080px;
    border-radius: var(--border-radius-lg);
  }
}

/* Upsell products */
.single-product .upsell-products .product {
  display: flex;
}
/* Mod plugin styles */
.cr-reviews-slider .cr-review-card {
  border-radius: var(--border-radius-lg);
}

.single-product-reviews-wrapper {
  padding: var(--space-10) 0;

  .single-product-reviews-title {
    font-size: var(--text-3xl);
    text-align: center;
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-6);
  }

  .single-product-reviews-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);

    @media (width <= 992px) {
      grid-template-columns: repeat(2, 1fr);
    }

    @media (width <= 600px) {
      grid-template-columns: 1fr;
    }
  }

  .single-product-review-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-xl);
    padding: var(--space-5);
    transition: all 0.3s ease;

    &:hover {
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
      transform: translateY(-2px);
    }

    &.hidden-review {
      display: none;
    }
  }

  .single-product-review-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
  }

  .single-product-review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-lg);
    flex-shrink: 0;
  }

  .single-product-review-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
  }

  .single-product-review-author {
    font-weight: 600;
    font-size: var(--text-base);
    color: var(--text-color);
  }

  .single-product-review-date {
    font-size: var(--text-sm);
    color: var(--text-muted);
  }

  .single-product-review-rating {
    display: flex;
    gap: 2px;
    margin-left: auto;

    .star {
      font-size: var(--text-lg);
      color: var(--color-border-light);

      &.filled {
        color: #ffd707;
      }
    }
  }

  .single-product-review-content {
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-color);
  }

  .single-product-review-product {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding: var(--space-3);
    background: var(--background-color-2);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    transition: all 0.3s ease;

    &:hover {
      background: var(--color-border-light);
    }
  }

  .single-product-review-product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    flex-shrink: 0;
  }

  .single-product-review-product-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
  }

  .single-product-reviews-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin: var(--space-6) auto 0;
    padding: var(--space-3) var(--space-6);
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-3xl);
    color: var(--primary-color);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;

    &:hover {
      background: var(--primary-color);
      color: var(--white);

      svg {
        stroke: var(--white);
      }
    }

    svg {
      transition: transform 0.3s ease;
      stroke: var(--primary-color);
    }

    &[data-expanded="true"] {
      svg {
        transform: rotate(180deg);
      }

      .toggle-text::before {
        content: "Visa färre recensioner";
      }

      .toggle-text {
        font-size: 0;
      }
    }
  }

  .single-product-no-reviews {
    text-align: center;
    color: var(--text-muted);
    font-size: var(--text-base);
    padding: var(--space-8);
  }
}
section.smort-media-text {
  &:first-of-type {
    padding-top: 0;
  }
  &:last-of-type {
    padding-bottom: 0;
  }
}

/* Anpassningar för mobil */
@media (width <= 768px) {
  .product-columns-wrapper {
    flex-direction: column; /* Lägg under varandra */
    gap: 0;
  }

  .product-image-gallery,
  .product-summary {
    flex: 1 1 100%; /* Full bredd */
  }

  /* Dölj det vanliga galleriet i mobil */
  .gallery-grid,
  .main-image {
    display: none;
  }
}

/* Fade-in Effekt - Grundläggande styling */
.fade-in {
  opacity: 0; /* Start med att dölja sektionen */
  transform: translateY(20px); /* Flytta ner sektionen något */
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out; /* Tidsstyrd animation */
}

/* När sektionen är synlig */
.fade-in.show {
  opacity: 1; /* Full synlighet */
  transform: translateY(0); /* Flytta tillbaka till sin position */
}

/* Fade-effekt längst ner */
.fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 200px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, white 100%);
  transition: opacity 0.3s ease-in-out;
}

@media (width <= 768px) {
  .product-summary {
    padding: var(--space-6) var(--space-4);
    gap: var(--space-3);

    .product_title {
      font-size: var(--text-2xl);
    }

    .woocommerce-product-details__short-description {
      margin-bottom: var(--space-5);
      line-height: 1.85;

      > p:first-child {
        font-size: var(--text-base);
      }

      ul li {
        margin-bottom: var(--space-3);
      }
    }

    form.cart {
      margin: var(--space-5) 0;
    }

    .product_meta {
      margin-top: var(--space-5);
      padding-top: var(--space-4);
    }
  }

  .product-intro {
    font-size: var(--text-base);
  }

  .accordion-toggle {
    padding: var(--space-3) var(--space-4);
  }

  .accordion-inner {
    padding: var(--space-4);
  }
}

/* ========================================
   WOOCOMMERCE PRODUCT BUNDLES STYLING
   ======================================== */

/* Bundle wrapper */
.bundled_product_summary {
  background: var(--white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-md);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  transition: all 0.2s ease;
}

.bundled_product_summary:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Bundle item layout */
.bundled_product {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

/* Bundle product image */
.bundled_product_images {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}

.bundled_product_images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide the gallery/zoom elements */
.bundled_product_images .woocommerce-product-gallery__trigger,
.bundled_product_images .zoomImg {
  display: none !important;
}

/* Bundle product details */
.bundled_product .details {
  flex: 1;
  min-width: 0;
}

/* Bundle product title */
.bundled_product_title_inner {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: var(--space-1);
  line-height: 1.3;
}

.bundled_product_title_inner a {
  color: inherit;
  text-decoration: none;
}

.bundled_product_title_inner a:hover {
  color: var(--primary-color);
}

/* Bundle quantity display */
.bundled_product_title_inner .quantity {
  font-weight: 400;
  color: var(--text-muted);
}

/* Hide bundle product description */
.bundled_product_excerpt,
.bundled_product .bundled_product_excerpt {
  display: none !important;
}

/* Bundle product price */
.bundled_product_price {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary-color);
  margin-top: var(--space-1);
}

/* Bundle quantity input */
.bundled_product .bundled_qty,
.bundled_product .quantity {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.bundled_product .quantity .qty {
  width: 60px;
  height: 36px;
  text-align: center;
  border: 1px solid var(--color-border-light);
  border-radius: var(--border-radius-sm);
  font-size: var(--text-base);
  font-weight: 600;
}

/* Bundle optional checkbox */
.bundled_product_optional_checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.bundled_product_optional_checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-color);
  cursor: pointer;
}

.bundled_product_optional_checkbox label {
  font-size: var(--text-sm);
  color: var(--text-color);
  cursor: pointer;
}

/* Bundle total section */
.bundle_price,
.bundle_data .price {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary-color);
  padding: var(--space-4) 0;
  border-top: 2px solid var(--color-border-light);
  margin-top: var(--space-4);
}

/* Bundle form wrapper */
.bundle_form .bundle_data {
  background: var(--background-color);
  border-radius: var(--border-radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

/* Bundle validation messages */
.bundle_error,
.bundle_message {
  padding: var(--space-3);
  border-radius: var(--border-radius-sm);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}

.bundle_error {
  background: rgba(220, 53, 69, 0.1);
  color: var(--color-error);
  border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Bundle availability */
.bundled_product_availability {
  font-size: var(--text-xs);
  margin-top: var(--space-1);
}

.bundled_product_availability .in-stock {
  color: var(--color-success);
}

.bundled_product_availability .out-of-stock {
  color: var(--color-error);
}

/* Responsive bundle styling */
@media (max-width: 768px) {
  .bundled_product {
    flex-direction: column;
    gap: var(--space-3);
  }

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

  .bundled_product_summary {
    padding: var(--space-3);
  }

  .bundle_form .bundle_data {
    padding: var(--space-4);
  }

  .bundled_product_title_inner {
    font-size: var(--text-sm);
  }
}
