.sd-sku-display, .sd-country-display {
    display: none;
}

/*############ Hero #############*/
.sd-scope .product-thumbnails .is-nav-selected a img, .product-thumbnails a:hover img{
	background-color: var(--color-linen);
}
.sd-scope .product-page-hero {
    padding-top: 164px !important;
    background-color: var(--color-linen);
}

.product-page-hero img {
  /*  background: var(--color-white) ; */
}
 
.single-product .rank-math-breadcrumb {
    margin-bottom: 1rem;
}

.product-page-hero .badge-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: end;
    margin: 20px -20px;
}

.single-product .yith-ywraq-add-to-quote {
    display: none;
}

.single-product #sd-configurator .yith-ywraq-add-to-quote {
    display: block;
}

.single_add_to_cart_button {
    background: var(--color-green) !important;
}
.single-product:has(#sd-configurator) .product-price-row {display: none;}
.product-price-row {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.product-price-row .product-price-container {
    margin-right: var(--space-md) !important;
}

.product-price-row .price {
    font-size: var(--fs-500) !important;
    font-weight: var(--fw-sans-regular);
    font-family: var(--font-serif);
}

.product-price-row .product-price-row-text p {
    font-size: var(--fs-500) !important;
    font-weight: var(--fw-sans-regular);
    color: var(--color-text);
    margin-right: var(--space-sm);
}

.product-price-row .cart {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.add-to-cart-container .button {
  background-color: var(--color-green)!important;
  color: #fff;
  border: none;
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.single_add_to_cart_button:hover {
  background: #333;
}

.yith-ywraq-add-to-quote a {
    font-weight: var(--fw-sans-medium);
}

form.cart {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 849px) {
    .product-page-hero {
        padding-top: 100px !important;
    }
    .product-page-hero .row > .col {
        padding-bottom: 0px;
    }
    .product-page-hero .product-price-row {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 0;
    }
    .product-page-hero .product-price-row .cart {
        flex-direction: column;
        align-items: flex-start;
    }
    .section.product-page-hero .stack.product-price-row .add-to-cart-container {
        margin-top: var(--space-sm)!important;
    }
    .product-page-hero .product-thumbnails {
        gap:0;
    }
    .product-hero-description {
        margin-top: var(--space-md);
    }
}



/*############ Product information tabs #############*/
.product-information-wrapper {
    background: var(--color-stone);
    padding: var(--space-lg);
}
.product-information-wrapper .nav span{
    font-weight: var(--fw-sans-regular);
    font-size: var(--fs-300) !important;  
}

@media (max-width: 849px) {
    .product-information-wrapper {
        margin-top: var(--space-lg);
        padding: var(--space-md);
    }
}
/*############ Customer quote #############*/

.product-quote .quotes p {
    column-count: 2;
    column-gap: 2rem;
}

@media (max-width: 849px) {
    .product-quote  {
        padding-top: calc(353px + var(--space-xl)) !important;
        padding-bottom: 0 !important;
    }
    .product-quote p {
        column-count: 1;
    }

}

/*############ Product information #############*/
.product-section {
    border:none !important;
}
.product-section-title{
    padding-left:var(--space-md);
}

.product-info-sections .row {
    align-items: center;
    margin-bottom: var(--space-xl);
}
.product-info-sections .row:first-of-type {
    margin-top: var(--space-xl);
}

@media (max-width: 849px) {
    .product-info-sections  {
        #col-2 {
            order: 1;
        }
    }

}



/*############ Related products #############*/

.sd-scope .produkter.tillbehor   {
    display: grid;
    /*gap: 1rem;*/
    /* 3 columns on wide screens, fewer as space shrinks */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    /* Ensure items stretch to equal row height */
    align-items: stretch;
    padding: 0 5rem;
}
.sd-scope .produkter.tillbehor {
    background: transparent !important;
    margin-top: -90px;   /* overlap into green section */
    margin-bottom: -225px; /* overlap into section below */
    position: relative;
    z-index: 2;
}

.sd-scope .produkter.tillbehor article.product-card {
    display: grid;
    grid-template-rows: auto 1fr auto auto; /* title | content | button */
    border: 1px solid #e5e7eb;
    border-radius: 4px;

    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    /* Remove place-content: center as it conflicts with grid alignment */
}
/* Even product cards (2nd, 4th, 6th, etc.) - white background */
.sd-scope .produkter.tillbehor article.product-card:nth-child(even) {
    background: #F1F1F1;
}

/* Odd product cards (1st, 3rd, 5th, etc.) - light gray background */
.sd-scope .produkter.tillbehor article.product-card:nth-child(odd) {
    background: #DDD;
}

.sd-scope .produkter.tillbehor article.product-card .product-card__title {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    /* This goes in the first grid row (auto) */
}

/* Add the missing .sd-scope prefix */
.sd-scope .produkter.tillbehor article.product-card .product-card__button {
    display: none;
    background: var(--color-primary);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 0.1rem 0.5rem;
    cursor: pointer;
    /* This goes in the third grid row (auto) */
    justify-self: center; /* Align button to left instead of stretching */
    margin-top: 0.5rem; /* Add some spacing above button */
    width: fit-content;
}

/* Body content - grows to fill available space */
.sd-scope .product.tillbehor article.product-card .product-card__body {
    color: #4b5563;
    /* Remove flex-grow since we're using grid, not flexbox */
    /* This goes in the middle grid row (1fr - takes remaining space) */
}
.sd-scope .product.tillbehor article.product-card .product-card__image {
    width: 100%;
    max-width: 150px; /* Adjust as needed */
    height: 500px;
    margin: 0.5rem auto; /* Center the image with auto margins */
}


/*.sd-scope .section-with-products,*/
/*.sd-scope .section-with-products .row,*/
/*.sd-scope .section-with-products .col,*/
/*.sd-scope .section-with-products .col-inner {*/
/*    margin-top: -30px !important;*/
/*}*/
.sd-scope [id^="section_"].section-with-products {
    transform: translateY(-30px) !important;
}

/* Make sure no child elements have transforms */
.sd-scope .section-with-products * {
    transform: none !important;
}

/* overlap product row */
.product-row {
    margin-top: -200px;   /* overlap into green section */
    margin-bottom: -200px; /* overlap into section below */
    position: relative;
    z-index: 2;
}


/************WOOCOMMERCE PRODUCT IMAGE HANDLING *************/
/************ PRODUCT IMAGES ************/
/* Gallery thumbnails under product */
.sd-scope .woocommerce-product-gallery__image--thumb img {
    opacity: 0.8;
    transition: opacity 0.2s;
}

.sd-scope .woocommerce-product-gallery__image--thumb img:hover {
    opacity: 1;
}
/********************END PRODUCT IMAGE CSS***********************/