/* START: Custom Cross-Sells Styling – 1px Rahmen, Icon-Fix korrigiert */

:root {
    --cross-sell-primary: #790AB7;
    --cross-sell-hover: #AB36FE;
    --cross-sell-bg: #F7F7F7;
    --cross-sell-radius: 5px;
    --cross-sell-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --cross-sell-transition: all 0.3s cubic-bezier(.4,0,.2,1);
}

/* Container */
.custom-cross-sells {
    margin: 2rem 0;
    padding: 0 1.5rem 1.5rem 1.5rem;
    background: var(--cross-sell-bg);
    border: none;
    border-radius: var(--cross-sell-radius);
    box-sizing: border-box;
    max-width: 100%;
}

/* Überschrift */
.custom-cross-sells h2 {
    text-align: center;
    color: #222;
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Grid: max 4 Spalten */
.custom-cross-sells .cross-sells-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 100%;
    gap: 1.5rem;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.custom-cross-sells .cross-sell-item:nth-child(n+5) {
    display: none;
}

/* Karten-Design */
.custom-cross-sells .cross-sell-item {
    background: #fff;
    border-radius: var(--cross-sell-radius);
    overflow: hidden;
    box-shadow: var(--cross-sell-shadow);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--cross-sell-primary);
    transition: var(--cross-sell-transition);
    min-height: 340px;
    justify-content: flex-start;
    text-align: center;
}

.custom-cross-sells .cross-sell-item:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--cross-sell-hover);
    box-shadow: 0 8px 24px rgba(171,54,254,0.12), 0 1.5px 6px rgba(0,0,0,0.08);
}

/* Produktbild */
.custom-cross-sells .product-image-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 0 0.5rem 0;
    box-sizing: border-box;
    justify-content: center;
}

.custom-cross-sells .product-image-container img {
    width: 100%;
    max-width: 180px;
    height: auto;
    max-height: 180px;
    object-fit: contain;
    border-radius: 5px;
    background: #fff;
    transition: var(--cross-sell-transition);
    margin: 0 auto;
    display: block;
    box-shadow: 0 2px 8px rgba(121,10,183,0.04);
}

/* Icons */
.custom-cross-sells .product-icons-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 5px;
    width: 100%;
    opacity: 1;
    position: static;
    transform: none;
    transition: none;
}

.custom-cross-sells .product-view-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--cross-sell-primary);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: none;
    outline: none;
    transition: var(--cross-sell-transition);
    text-decoration: none;
    position: relative;
}

.custom-cross-sells .product-view-icon:hover {
    background: var(--cross-sell-hover);
    transform: scale(1.13);
    color: #fff !important;
}

/* ICON FIX: Auge-Icon bleibt immer weiß */
.custom-cross-sells .product-view-icon i,
.custom-cross-sells .product-view-icon svg,
.custom-cross-sells .product-view-icon i.fa-eye {
    color: #fff !important;
    fill: #fff !important;
}

.custom-cross-sells .product-view-icon:hover i,
.custom-cross-sells .product-view-icon:hover svg,
.custom-cross-sells .product-view-icon:hover i.fa-eye {
    color: #fff !important;
    fill: #fff !important;
}

/* Produktdetails */
.custom-cross-sells .product-details {
    padding: 0.7rem 0.8rem 1.2rem 0.8rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    width: 100%;
}

.custom-cross-sells .product-title {
    font-size: 1.08rem;
    font-weight: 500;
    margin: 0 0 0.3rem 0;
    line-height: 1.2;
    color: #222;
    text-align: center;
}

.custom-cross-sells .product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.custom-cross-sells .product-title a:hover {
    color: var(--cross-sell-primary);
}

.custom-cross-sells .product-price {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cross-sell-primary);
    margin-bottom: 0.5rem;
}

/* Ausverkauft-Hinweis */
.custom-cross-sells .stock-hint-out {
    color: #e74c3c;
    background: none;
    border: none;
    font-size: 0.95rem;
    margin-top: 0.5em;
    font-weight: 400;
    display: block;
    padding: 0;
    border-radius: 0;
    letter-spacing: 0.01em;
}

/* Responsive */
@media (max-width: 900px) {
    .custom-cross-sells .cross-sells-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1rem;
    }
    .custom-cross-sells .product-image-container img {
        max-width: 140px;
        max-height: 140px;
    }
}

@media (max-width: 600px) {
    .custom-cross-sells {
        padding: 0.8rem;
    }
    .custom-cross-sells .cross-sells-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    .custom-cross-sells .cross-sell-item {
        padding-left: 0;
        padding-right: 0;
    }
    .custom-cross-sells .product-image-container {
        padding: 1.2rem 0 0.5rem 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .custom-cross-sells .product-image-container img {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 260px;
        object-fit: contain;
        margin: 0 auto;
        display: block;
        border-radius: 5px;
        box-shadow: 0 2px 8px rgba(121,10,183,0.04);
    }
}

/* ENDE: Custom Cross-Sells Styling */
