/**
 * Product detail page — ported from vergleiche theme, token-based layout.
 */

.product-page {
    padding-bottom: var(--vgl-space-12);
}

/* Title — match category / sub-category pages */
.vgl-product-page__header {
    margin-bottom: var(--vgl-space-6);
}

.vgl-product-page__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--vgl-space-4);
}

.vgl-product-page__title {
    position: relative;
    flex: 1 1 16rem;
    margin: 0 0 var(--vgl-space-2);
    padding-bottom: var(--vgl-space-3);
    font-size: var(--vgl-font-size-2xl);
    font-weight: 700;
    line-height: var(--vgl-line-height-tight);
    color: var(--vgl-color-text);
    letter-spacing: -0.01em;
    border-bottom: none;
}

.vgl-product-page__title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 3rem;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--vgl-color-primary), var(--vgl-color-accent));
}

.vgl-product-page__toolbar {
    display: flex;
    align-items: center;
    gap: var(--vgl-space-3);
    padding-bottom: var(--vgl-space-2);
}

/* Wishlist heart — match .v-social-icons button style */
.vgl-product-page__toolbar .vgl-toolbar-icon,
.icons.mobile.vgl-toolbar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--vgl-radius-sm);
    color: var(--vgl-color-primary);
    background: var(--vgl-color-surface);
    border: 1px solid var(--vgl-color-border);
    cursor: pointer;
    transition: color var(--vgl-transition), background var(--vgl-transition), border-color var(--vgl-transition);
}

.vgl-product-page__toolbar .vgl-toolbar-icon:hover,
.icons.mobile.vgl-toolbar-icon:hover {
    color: var(--vgl-color-accent);
    border-color: var(--vgl-color-accent);
}

.vgl-product-page__toolbar .vgl-toolbar-icon .add_to_saved,
.icons.mobile.vgl-toolbar-icon .add_to_saved {
    font-size: 1.125rem;
    line-height: 1;
    pointer-events: none;
}

.vgl-product-page__toolbar .vgl-toolbar-icon .add_to_saved.fa-heart,
.icons.mobile.vgl-toolbar-icon .add_to_saved.fa-heart {
    color: var(--vgl-color-accent);
}

.vgl-product-page__toolbar .vgl-toolbar-icon .add_to_saved.fa-heart-o,
.icons.mobile.vgl-toolbar-icon .add_to_saved.fa-heart-o {
    color: inherit;
}

.vgl-product-page__toolbar #sv_btn_shopping-compare {
    margin: 0;
}

.single-product .add-to-compare-btn {
    margin-left: 0;
}

.add-to-compare-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--vgl-radius);
    background: var(--vgl-color-primary-soft);
    color: var(--vgl-color-primary);
}

@media (max-width: 743px) {
    .vgl-product-page__toolbar {
        display: none;
    }

    .vgl-product-page__toolbar-mobile,
    #sv_btn_shopping-compare-mobile {
        display: block;
        margin: 0 0 var(--vgl-space-4) var(--vgl-space-8);
    }

    .icons.mobile.vgl-toolbar-icon {
        float: right;
        margin-top: -12px;
    }
}

@media (min-width: 744px) {
    .vgl-product-page__toolbar-mobile,
    #sv_btn_shopping-compare-mobile,
    .icons.mobile {
        display: none;
    }
}

/* Overview grid — 2/3 gallery + 1/3 sidebar, description full width */
#overview.product-overview {
    display: grid;
    gap: var(--vgl-space-6);
    grid-template-columns: minmax(0, 1fr);
    margin-bottom: var(--vgl-space-8);
}

@media (min-width: 1024px) {
    #overview.product-overview {
        grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr);
        align-items: start;
    }

    #overview .product-hero__description {
        grid-column: 1 / -1;
    }
}

.product-hero__gallery {
    min-width: 0;
    position: relative;
}

.product-hero__sidebar {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--vgl-space-4);
}

/* Gallery */
.main-product-photo {
    background: var(--vgl-color-bg-alt);
    border-radius: var(--vgl-radius-lg);
    padding: var(--vgl-space-4);
    text-align: center;
}

div.main-product-photo .image-cont {
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    margin: 1em 0;
}

div.main-product-photo > .image-cont:not(:nth-child(1)) {
    display: none;
}

div.main-product-photo .image-cont > .helper {
    display: inline-block;
    height: 250px;
    vertical-align: middle;
}

div.main-product-photo .image-cont > img,
#overview .product-hero__gallery .main-product-photo img {
    display: inline-block;
    vertical-align: middle;
    max-height: 420px;
    width: auto;
    margin: 0 auto;
    object-fit: contain;
}

#overview .product-hero__gallery .image-cont > .helper {
    height: 380px;
}

.slider-nav {
    display: none;
    margin-top: var(--vgl-space-3);
}

.slider-nav img {
    max-height: 90px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: var(--vgl-radius-sm);
}

.main-product-photo .slick-next {
    right: -20px !important;
}

.main-product-photo .slick-prev {
    left: -20px !important;
}

.s-a-h {
    opacity: 0;
}

.slick-dots li button:before {
    font-size: 30px !important;
}

/* Lightbox zoom */
.openSlider {
    display: flex !important;
    position: fixed !important;
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    z-index: -1;
    opacity: 0;
}

.openSlider.active_s {
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease-in;
}

.openSlider > div {
    position: fixed !important;
    max-width: 60vw;
    display: inline-block;
    top: 20vh;
    background: rgba(255, 255, 255, 0.98);
    padding: var(--vgl-space-4);
}

.openSlider .image-cont .zoom_container {
    background-position: var(--bg-x, 50%) var(--bg-y, 50%);
    background-size: 300% 300%;
    position: relative;
    overflow: hidden;
    margin: 4% auto;
}

.openSlider .image-cont img {
    cursor: zoom-in;
    transition: opacity 0.5s;
    display: block;
    width: auto;
    max-height: calc(50vh - 30px) !important;
}

.openSlider .image-cont img:hover {
    opacity: 0;
}

.openSlider .slick-dots li.slick-active button:before {
    color: var(--vgl-color-primary);
}

.openSlider > div .slick-slide {
    text-align: center;
    outline: none;
}

.openSlider.not_slick > div {
    width: 60vh !important;
    height: auto !important;
    text-align: center;
}

@media (max-width: 768px) {
    .openSlider > div {
        max-width: 80% !important;
        height: 60% !important;
    }

    .openSlider > div .image-cont img:hover {
        opacity: 1 !important;
    }
}

.single-product .bio-label {
    z-index: 9;
}

/* Price-reduction badges — gallery overlay + retailer-table cell */
.product-page .price-reduction,
.merchant-price-reduction.price-reduction,
.price-table-actions .price-changing.price-reduction {
    background-color: var(--vgl-color-accent);
    color: var(--vgl-color-text-inverse);
    border-radius: 7px;
    text-align: center;
    font-weight: 700;
    padding: 5px;
}

/* Gallery overlay badge (rotated tag, top-right of the image) */
.product-hero__gallery .merchant-price-reduction.price-reduction {
    position: absolute;
    width: 100px;
    top: -6px;
    right: 3px;
    font-size: 22px;
    transform: rotate(8deg);
    z-index: 9;
}

/* Inline badge inside the retailer table — no rotation, fits the cell */
.price-table-actions .price-changing.price-reduction {
    display: inline-block;
    padding: 2px 10px;
    margin-bottom: var(--vgl-space-2);
    font-size: var(--vgl-font-size-sm);
    transform: none;
}

.product .product-topdeal {
    font-size: var(--vgl-font-size-base);
    padding: 3px 4px;
    display: inline-block;
    background-color: var(--vgl-color-accent);
    color: var(--vgl-color-text-inverse);
    border-radius: var(--vgl-radius);
    width: 70px;
    text-align: center;
    transform: rotate(8deg);
    font-weight: bold;
    position: absolute;
    right: 10px;
    top: 15px;
    z-index: 9;
}

/* Best merchant sidebar card */
.top_merchant {
    border: 1px solid var(--vgl-color-border);
    border-radius: var(--vgl-radius-lg);
    overflow: hidden;
    box-shadow: var(--vgl-shadow-sm);
    background: var(--vgl-color-surface);
    margin-bottom: 0;
}

.top_merchant .top_merchant_name {
    background: linear-gradient(135deg, var(--vgl-color-primary) 0%, var(--vgl-color-primary-hover) 100%);
    color: var(--vgl-color-text-inverse);
    font-size: var(--vgl-font-size-sm);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: var(--vgl-space-3) var(--vgl-space-4);
    margin-top: 0;
}

.top_merchant .merchant_container {
    min-height: 135px;
    padding: var(--vgl-space-3);
    position: relative;
}

.top_merchant .merchant-col,
.top_merchant .merchant-price {
    width: 50%;
    text-align: center;
    float: left;
}

.top_merchant .merchant-col img {
    max-height: 70px;
    max-width: 100%;
}

.top_merchant .merchant-price {
    float: right;
    margin-top: 5px;
}

.top_merchant .price,
.top_merchant .vgl-price,
.product-page .merchant-price,
.product-page .price,
.single-product-price {
    color: var(--vgl-color-accent);
    font-weight: 700;
}

.top_merchant .merchant-col p {
    margin: 0;
    font-size: var(--vgl-font-size-xs);
    color: var(--vgl-color-text-muted);
    text-align: center;
}

.top_merchant .merchant-col > a > * {
    position: relative;
    top: -3px;
}

.top_merchant .merchant-col .rating,
.top_merchant .merchant-col .rating > div {
    margin-bottom: 0 !important;
    margin-top: 3px;
}

.top_merchant .size_per_unit {
    height: 24px;
    font-size: var(--vgl-font-size-sm);
    color: var(--vgl-color-text-muted);
}

.top_merchant .single-product-price {
    font-size: var(--vgl-font-size-xl);
    margin-bottom: var(--vgl-space-2);
}

/* "Order Now" CTA — no global .btn.metro in route-scoped bundle */
.top_merchant .medium.primary.btn.metro.rounded {
    display: block;
    margin-top: var(--vgl-space-2);
}

.top_merchant .medium.primary.btn.metro.rounded > a {
    display: block;
    padding: var(--vgl-space-3) var(--vgl-space-4);
    border-radius: var(--vgl-radius);
    background: var(--vgl-color-accent);
    border: 1px solid var(--vgl-color-accent);
    color: var(--vgl-color-text-inverse);
    font-weight: 700;
    font-size: var(--vgl-font-size-sm);
    text-align: center;
    text-decoration: none;
    transition: background var(--vgl-transition), color var(--vgl-transition);
}

.top_merchant .medium.primary.btn.metro.rounded:hover > a {
    background: var(--vgl-color-accent-hover);
    border-color: var(--vgl-color-accent-hover);
    color: var(--vgl-color-text-inverse);
}

.top_merchant .promotion-border {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-bottom: 0;
    padding: 5px 30px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .top_merchant .promotion-border {
        padding: 0 !important;
    }
}

/* Price chart */
#overview .product-hero__sidebar .chart-container,
#overview .product-hero__chart .chart-container {
    float: none;
    width: 100%;
    border: 1px solid var(--vgl-color-border);
    border-radius: var(--vgl-radius-lg);
    padding: 0 var(--vgl-space-3) var(--vgl-space-3);
    box-shadow: var(--vgl-shadow-sm);
    overflow: hidden;
    background: var(--vgl-color-surface);
}

#overview .product-hero__sidebar .chart-container > .title,
#overview .product-hero__chart .chart-container > .title {
    margin: 0 calc(var(--vgl-space-3) * -1) var(--vgl-space-2) !important;
    border-radius: calc(var(--vgl-radius-lg) - 1px) calc(var(--vgl-radius-lg) - 1px) 0 0;
}

#overview .product-hero__sidebar .chart-switcher > .chart-switch-item.active,
#overview .product-hero__chart .chart-switcher > .chart-switch-item.active {
    background: var(--vgl-color-primary-soft);
    border-bottom: none;
    color: var(--vgl-color-primary);
}

/* Attributes table */
#overview .single-product-attributes {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--vgl-color-border);
    border-radius: var(--vgl-radius-lg);
    overflow: hidden;
    box-shadow: var(--vgl-shadow-sm);
    background: var(--vgl-color-surface);
    font-size: var(--vgl-font-size-sm);
}

#overview .single-product-attributes thead {
    background: var(--vgl-color-primary);
}

#overview .single-product-attributes thead tr th {
    padding: var(--vgl-space-2) var(--vgl-space-3);
    font-weight: 600;
    font-size: var(--vgl-font-size-xs);
    color: var(--vgl-color-text-inverse);
    text-align: center;
    letter-spacing: 0.02em;
}

#overview .single-product-attributes tbody td {
    padding: var(--vgl-space-2) var(--vgl-space-3);
    line-height: 1.4;
    color: var(--vgl-color-text);
}

#overview .single-product-attributes tbody td:first-child {
    font-weight: 600;
    color: var(--vgl-color-text-muted);
    width: 42%;
}

/* Description — Icecat or merchant */
#overview .product-hero__description {
    clear: both;
    margin-top: var(--vgl-space-4);
    padding-top: var(--vgl-space-6);
    border-top: 1px solid var(--vgl-color-border);
}

#overview .product-hero__description .product-description--columns .icecat-description--overview,
#overview .product-hero__description .product-description--columns .single-product-desc {
    column-count: 3;
    column-gap: var(--vgl-space-8);
    line-height: 1.7;
    color: var(--vgl-color-text);
    font-size: var(--vgl-font-size-sm);
}

#overview .product-hero__description .icecat-description--overview p {
    margin: 0 0 var(--vgl-space-3);
    break-inside: avoid;
}

#overview .product-hero__description .icecat-description--overview ul {
    list-style-type: disc;
    list-style-position: outside;
    margin: var(--vgl-space-3) 0 var(--vgl-space-4) 1.25em;
    padding: 0;
    break-inside: avoid;
}

#overview .product-hero__description .icecat-description--overview ul li::before {
    content: none !important;
    display: none !important;
}

#overview .product-hero__description .icecat-highlights--overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--vgl-space-3) var(--vgl-space-8);
    margin: var(--vgl-space-5) 0 0;
    padding: 0;
    list-style: none !important;
    column-count: unset;
}

#overview .product-hero__description .icecat-highlights--overview li {
    position: relative;
    padding: var(--vgl-space-2) 0 var(--vgl-space-2) 22px;
    margin: 0;
    border-bottom: 1px solid var(--vgl-color-border);
    font-size: var(--vgl-font-size-sm);
    line-height: 1.5;
    list-style: none !important;
    break-inside: avoid;
}

#overview .product-hero__description .icecat-highlights--overview li::before {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--vgl-color-primary);
    font-size: 12px;
}

.product-description {
    margin-top: var(--vgl-space-4);
    line-height: 1.65;
    color: var(--vgl-color-text);
    font-size: var(--vgl-font-size-sm);
}

.product-label img {
    height: 50px;
}

.product-labels {
    margin-top: var(--vgl-space-8);
}

/* Retailer price table */
#retailers.retailers-table {
    margin-top: var(--vgl-space-8);
    scroll-margin-top: 80px;
}

#retailers .header-line {
    margin: 0 0 var(--vgl-space-4);
    font-size: var(--vgl-font-size-xl);
    font-weight: 700;
    color: var(--vgl-color-text);
    line-height: 1.3;
}

#retailers .retailer-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
    border: 0;
    background: transparent;
}

#retailers .retailer-table thead tr th {
    padding: var(--vgl-space-3) var(--vgl-space-3);
    font-weight: 600;
    font-size: var(--vgl-font-size-sm);
    border: 0;
    background: var(--vgl-color-primary) !important;
    color: var(--vgl-color-text-inverse);
    vertical-align: middle;
}

#retailers .retailer-table thead tr th:first-child {
    border-radius: var(--vgl-radius) 0 0 var(--vgl-radius);
}

#retailers .retailer-table thead tr th:last-child {
    border-radius: 0 var(--vgl-radius) var(--vgl-radius) 0;
}

#retailers .retailer-table tbody tr {
    background: var(--vgl-color-surface);
    box-shadow: var(--vgl-shadow-sm);
    transition: box-shadow var(--vgl-transition);
}

#retailers .retailer-table tbody tr:hover {
    box-shadow: var(--vgl-shadow);
}

#retailers .retailer-table tbody td {
    padding: var(--vgl-space-4) var(--vgl-space-3);
    vertical-align: middle;
    border-top: 1px solid var(--vgl-color-border);
    border-bottom: 1px solid var(--vgl-color-border);
    background: var(--vgl-color-surface);
    text-align: center;
}

#retailers .retailer-table tbody td:first-child {
    border-left: 1px solid var(--vgl-color-border);
    border-radius: var(--vgl-radius) 0 0 var(--vgl-radius);
}

#retailers .retailer-table tbody td:last-child {
    border-right: 1px solid var(--vgl-color-border);
    border-radius: 0 var(--vgl-radius) var(--vgl-radius) 0;
}

#retailers .retailer-table .merchant-col img {
    max-height: 70px;
}

#retailers .retailer-table .medium.primary.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin: 0 auto;
}

#retailers .retailer-table .medium.primary.btn > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--vgl-space-2) var(--vgl-space-4);
    min-height: 40px;
    border-radius: var(--vgl-radius);
    font-weight: 700;
    font-size: var(--vgl-font-size-sm);
    min-width: 120px;
    background: var(--vgl-color-accent);
    border: 1px solid var(--vgl-color-accent);
    color: var(--vgl-color-text-inverse);
    text-decoration: none;
    transition: background var(--vgl-transition), color var(--vgl-transition);
}

#retailers .retailer-table .medium.primary.btn:hover > a {
    background: var(--vgl-color-accent-hover);
    border-color: var(--vgl-color-accent-hover);
    color: var(--vgl-color-text-inverse);
}

#retailers .retailer-table .price.show-mobile {
    color: var(--vgl-color-accent);
    font-weight: 700;
}

/* Mobile/desktop column toggling — header.css sets .hide-mobile to
   display:block which breaks table cells, and never defines .show-mobile. */
#retailers .retailer-table .hide-mobile {
    display: table-cell;
}

#retailers .show-mobile,
.product-page .show-mobile {
    display: none;
}

.justify-evenly {
    display: flex;
    justify-content: space-evenly;
}

.show-mobile.justify-evenly {
    display: none;
}

.free-shipping {
    text-decoration: line-through;
    text-decoration-color: var(--vgl-color-accent);
}

.min-order-value {
    position: absolute;
    right: 0;
    top: 0;
    padding: 0 var(--vgl-space-2);
    background-color: var(--vgl-color-accent);
    color: var(--vgl-color-text-inverse);
    font-weight: bold;
    cursor: pointer;
}

.min-order-value .tip {
    position: absolute;
    padding: var(--vgl-space-2) var(--vgl-space-4);
    border-radius: var(--vgl-radius-sm);
    top: -55px;
    right: -160px;
    opacity: 0.9;
    display: none;
    background-color: var(--vgl-color-text);
    color: var(--vgl-color-text-inverse);
    min-width: 180px;
    font-weight: 100;
    z-index: 9;
}

.min-order-value:hover .tip {
    display: block;
}

.merchant-rating {
    float: right;
}

.merchant-rating-mobile {
    display: none;
}

#retailers .retailer-table .last-update p {
    margin: var(--vgl-space-2) 0 0;
    font-size: var(--vgl-font-size-xs);
    color: var(--vgl-color-text-muted);
}

#retailers .small-text {
    margin-top: var(--vgl-space-3);
    font-size: var(--vgl-font-size-xs);
    color: var(--vgl-color-text-muted);
}

.return-policy.true {
    filter: grayscale(100%) brightness(70%) sepia(100%) hue-rotate(50deg) saturate(1000%) contrast(0.8);
}

.return-policy.false {
    filter: grayscale(100%) brightness(100%) sepia(100%) hue-rotate(-50deg) saturate(600%) contrast(0.8);
}

.stock_boll {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin: 0 auto;
}

.stock_boll.available {
    background-color: #22c55e;
}

.stock_boll.not-available {
    background-color: #ef4444;
}

.stock_boll.limited-quantity {
    background-color: #f27a04;
}

.stock_boll.check-on-website {
    background-color: #94a3b8;
}

.promotion-border {
    position: relative;
    border: 1px dashed var(--vgl-color-accent);
    color: var(--vgl-color-accent);
    line-height: 1.5;
    font-size: var(--vgl-font-size-sm);
    margin-bottom: 5px;
}

td .price-table {
    width: 150px;
    margin: auto;
}

td .price-table .table-item {
    display: flex;
    padding: 0 var(--vgl-space-2);
}

td .price-table .table-item span:first-child {
    width: 30%;
    text-align: left;
}

td .price-table .table-item span:last-child {
    width: 70%;
    text-align: right;
}

.product-table-ads {
    margin: var(--vgl-space-6) 0;
    text-align: center;
}

/* ------------------------------------------------------------
   Related products slider (#review-related-products)
   Slick slides reuse the ES product-card markup; styles are
   self-contained here (old theme relied on global gumby rules).
   ------------------------------------------------------------ */
.review-related-products {
    margin-top: var(--vgl-space-10);
}

.review-related-products > .section-title {
    margin: 0 0 var(--vgl-space-4);
    font-size: var(--vgl-font-size-xl);
    font-weight: 700;
    color: var(--vgl-color-text);
    line-height: 1.3;
    overflow: hidden;
}

.review-related-products .show_all_prod_btn {
    float: right;
    display: inline-block;
    padding: var(--vgl-space-2) var(--vgl-space-4);
    border-radius: var(--vgl-radius);
    background: var(--vgl-color-accent);
    border: 1px solid var(--vgl-color-accent);
    color: var(--vgl-color-text-inverse);
    font-size: var(--vgl-font-size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background var(--vgl-transition), color var(--vgl-transition);
}

.review-related-products .show_all_prod_btn:hover,
.review-related-products .show_all_prod_btn:focus {
    background: var(--vgl-color-surface);
    color: var(--vgl-color-accent);
}

.review-related-products .go-to-compare-btn {
    float: right;
}

/* Horizontal layout fallback: keeps cards in a row before slick boots
   (or if slick fails). Once slick adds .slick-initialized this disables
   itself and the slick track takes over. */
#review-related-products:not(.slick-initialized) {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--vgl-space-3);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

#review-related-products:not(.slick-initialized) > .product {
    flex: 0 0 200px;
    scroll-snap-align: start;
}

/* Card container */
#review-related-products .product {
    position: relative;
    text-align: center;
    background: var(--vgl-color-surface);
    border: 1px solid var(--vgl-color-border);
    border-radius: var(--vgl-radius);
    margin: 3px;
    box-sizing: border-box;
    transition: box-shadow var(--vgl-transition), border-color var(--vgl-transition);
}

#review-related-products .product:hover {
    border-color: #d7d7d7;
    box-shadow: var(--vgl-shadow-sm);
}

#review-related-products .product .product-photo {
    position: relative;
    text-align: center;
    padding: var(--vgl-space-3);
}

#review-related-products .product .product-photo img {
    max-width: 154px;
    max-height: 160px;
    width: auto;
    margin: 0 auto;
}

#review-related-products .product .bio-label {
    position: relative;
    height: 0;
    top: -15px;
    left: 12px;
    z-index: 9;
}

/* Hide hover quick-action buttons inside the slider */
#review-related-products .product .product-extra-buttons,
#review-related-products .product .extra-buttons,
#review-related-products .product .shopping_lists,
#review-related-products .product .product-desc p,
#review-related-products .product .product-desc .reviews,
#review-related-products .product .post_content,
#review-related-products .product .product_size {
    display: none !important;
}

#review-related-products .product .ss-p-prod {
    margin: 0 0 var(--vgl-space-1);
    font-size: var(--vgl-font-size-xs);
    color: var(--vgl-color-text-muted);
    height: auto !important;
}

#review-related-products .product .product-desc {
    padding: 0 var(--vgl-space-3);
}

#review-related-products .product .product-desc h2 {
    margin: var(--vgl-space-1) 0 var(--vgl-space-2);
    padding: 0;
    font-size: var(--vgl-font-size-base);
    line-height: 1.3;
    max-height: 80px;
    overflow: hidden;
}

#review-related-products .product .product-desc h2 a {
    color: var(--vgl-color-text);
    text-decoration: none;
}

#review-related-products .product .product-desc h2 a:hover,
#review-related-products .product .product-desc h2 a:focus {
    color: var(--vgl-color-accent);
}

#review-related-products .product .product-view {
    padding: 0 var(--vgl-space-3) var(--vgl-space-3);
    text-align: center;
}

#review-related-products .product .product-view .price {
    display: inline-block;
    margin: 0 0 var(--vgl-space-2);
    font-size: var(--vgl-font-size-lg);
    font-weight: 700;
    color: var(--vgl-color-accent);
}

#review-related-products .product .product-view .price span {
    font-weight: 700;
    color: var(--vgl-color-accent);
}

#review-related-products .product .product-view .retailers {
    display: block;
    margin-bottom: var(--vgl-space-2);
    font-size: var(--vgl-font-size-sm);
    color: var(--vgl-color-text-muted);
}

/* CTA buttons (Product detail = primary, Best offer = accent) */
#review-related-products .product .medium.primary.btn.metro {
    display: block;
    width: 100%;
    margin-top: var(--vgl-space-2);
    border-radius: var(--vgl-radius-sm);
    border: 1px solid var(--vgl-color-accent);
    background: var(--vgl-color-accent);
    overflow: hidden;
}

#review-related-products .product .medium.primary.btn.metro.blue {
    border-color: var(--vgl-color-primary);
    background: var(--vgl-color-primary);
}

#review-related-products .product .medium.primary.btn.metro > a {
    display: block;
    padding: var(--vgl-space-2) var(--vgl-space-3);
    color: var(--vgl-color-text-inverse);
    font-weight: 700;
    font-size: var(--vgl-font-size-sm);
    text-decoration: none;
    text-align: center;
}

#review-related-products .product .medium.primary.btn.metro:hover > a {
    background: var(--vgl-color-surface);
    color: var(--vgl-color-accent);
}

#review-related-products .product .medium.primary.btn.metro.blue:hover > a {
    color: var(--vgl-color-primary);
}

#review-related-products .product .btn.metro.rounded .small {
    display: none;
}

#review-related-products .popuptext {
    width: 170px;
}

@media (max-width: 450px) {
    .review-related-products .show_all_prod_btn {
        float: none;
        margin-top: var(--vgl-space-4);
        width: 100%;
        text-align: center;
    }

    .review-related-products .go-to-compare-btn {
        float: none;
        margin-top: var(--vgl-space-4);
        width: 100%;
    }
}

/* Icecat datasheet */
.product-section {
    margin-top: var(--vgl-space-8);
    padding-top: var(--vgl-space-5);
    border-top: 1px solid var(--vgl-color-border);
}

.product-section__title {
    margin: 0 0 var(--vgl-space-4);
    font-size: var(--vgl-font-size-xl);
    font-weight: 700;
    color: var(--vgl-color-text);
}

.icecat-datasheet {
    margin-top: 0;
    padding-top: var(--vgl-space-6);
}

.icecat-overview,
.icecat-specs {
    margin-top: var(--vgl-space-8);
}

#icecat-lazy {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--vgl-color-text-muted);
}

.icecat-assets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--vgl-space-3);
    margin-bottom: var(--vgl-space-5);
    padding: var(--vgl-space-4);
    background: var(--vgl-color-bg-alt);
    border: 1px solid var(--vgl-color-border);
    border-radius: var(--vgl-radius-lg);
}

.icecat-energy-label img {
    max-height: 100px;
    width: auto;
    border: 1px solid var(--vgl-color-border);
    border-radius: var(--vgl-radius-sm);
    background: var(--vgl-color-surface);
}

.icecat-document {
    display: inline-flex;
    align-items: center;
    gap: var(--vgl-space-2);
    padding: var(--vgl-space-2) var(--vgl-space-4);
    border: 1px solid var(--vgl-color-border);
    border-radius: var(--vgl-radius);
    color: var(--vgl-color-primary);
    text-decoration: none;
    font-size: var(--vgl-font-size-sm);
    font-weight: 600;
    background: var(--vgl-color-surface);
    transition: border-color var(--vgl-transition), background var(--vgl-transition);
}

.icecat-document:hover {
    background: var(--vgl-color-primary-soft);
    border-color: var(--vgl-color-primary);
}

.icecat-specs {
    display: flex;
    flex-direction: column;
    gap: var(--vgl-space-6);
}

.icecat-spec-block {
    background: var(--vgl-color-surface);
    border: 1px solid var(--vgl-color-border);
    border-radius: var(--vgl-radius-lg);
    overflow: hidden;
}

.icecat-spec-block__title {
    margin: 0;
    padding: var(--vgl-space-4) var(--vgl-space-5);
    font-size: var(--vgl-font-size-base);
    font-weight: 700;
    color: var(--vgl-color-text);
    background: var(--vgl-color-bg-alt);
    border-bottom: 1px solid var(--vgl-color-border);
}

.icecat-spec-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
}

.icecat-spec-item {
    display: flex;
    flex-direction: column;
    gap: var(--vgl-space-1);
    padding: var(--vgl-space-3) var(--vgl-space-5);
    border-bottom: 1px solid var(--vgl-color-border);
    border-right: 1px solid var(--vgl-color-border);
    transition: background var(--vgl-transition);
}

.icecat-spec-item:hover {
    background: var(--vgl-color-bg-alt);
}

.icecat-spec-item:nth-child(3n) {
    border-right: 0;
}

.icecat-spec-item dt {
    margin: 0;
    font-size: var(--vgl-font-size-sm);
    font-weight: 600;
    color: var(--vgl-color-text-muted);
    line-height: 1.4;
}

.icecat-spec-item dd {
    margin: 0;
    font-size: var(--vgl-font-size-sm);
    color: var(--vgl-color-text);
    line-height: 1.4;
    word-break: break-word;
}

.icecat-attribution {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--vgl-space-2) var(--vgl-space-3);
    margin-top: var(--vgl-space-4);
    padding-top: var(--vgl-space-4);
    border-top: 1px solid var(--vgl-color-border);
    font-size: var(--vgl-font-size-xs);
    color: var(--vgl-color-text-muted);
    line-height: 1.5;
}

.icecat-attribution a {
    color: var(--vgl-color-primary);
    font-weight: 700;
    text-decoration: none;
}

.icecat-attribution a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1100px) {
    .icecat-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .icecat-spec-item:nth-child(3n) {
        border-right: 1px solid var(--vgl-color-border);
    }

    .icecat-spec-item:nth-child(2n) {
        border-right: 0;
    }
}

@media (max-width: 900px) {
    #overview .product-hero__description .product-description--columns .icecat-description--overview,
    #overview .product-hero__description .product-description--columns .single-product-desc {
        column-count: 2;
    }

    #overview .product-hero__description .icecat-highlights--overview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .icecat-spec-grid {
        grid-template-columns: 1fr;
    }

    .icecat-spec-item {
        border-right: 0;
    }
}

@media (max-width: 767px) {
    .vgl-product-page__title {
        font-size: var(--vgl-font-size-xl);
    }

    #retailers .retailer-table .hide-mobile {
        display: none !important;
    }

    #retailers .show-mobile,
    .product-page .show-mobile {
        display: block;
    }

    .show-mobile.justify-evenly {
        display: flex !important;
    }

    .merchant-rating {
        display: none;
    }

    .merchant-rating-mobile {
        display: block;
    }

    #retailers .retailer-table tbody .last-update > p {
        font-size: 8px;
        text-align: center;
    }

    .promotion-border {
        font-size: 10px !important;
    }

    .retailer-table .primary.btn > a {
        padding: 0 10px !important;
    }

    .retailer-table .primary.btn {
        height: 30px !important;
        line-height: 28px !important;
        font-size: 12px !important;
    }

    .return-policy,
    .stock_boll {
        width: 20px !important;
        height: 20px !important;
    }

    #overview .product-hero__description .product-description--columns .icecat-description--overview,
    #overview .product-hero__description .product-description--columns .single-product-desc {
        column-count: 1;
    }

    #overview .product-hero__description .icecat-highlights--overview {
        grid-template-columns: 1fr;
    }

    #retailers .header-line {
        font-size: var(--vgl-font-size-lg);
    }

    .product-section__title {
        font-size: var(--vgl-font-size-lg);
    }
}

@media print {
    .icecat-spec-block {
        page-break-inside: avoid;
    }

    .product-hero__offer,
    #overview .top_merchant {
        display: none;
    }
}
