/* ===== WC Compatible Products – Slider ===== */

.wccp-compatible-products {
    margin: 40px 0;
    clear: both;
}

.wccp-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
    color: #333;
}

/* ── Outer wrapper με βέλη ── */
.wccp-slider-outer {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Viewport: κρύβει τα slides που δεν χωράνε ── */
.wccp-slider-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

/* ── Track: όλα τα slides σε σειρά ── */
.wccp-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ── Κάθε slide παίρνει 1/3 του viewport ── */
.wccp-slide {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 0;
}

/* ── Κάρτα ── */
.wccp-product-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.wccp-product-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}

.wccp-product-card.out-of-stock {
    opacity: 0.6;
}

.wccp-product-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wccp-product-image {
    background: #f5f5f5;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.wccp-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.wccp-product-card:hover .wccp-product-image img {
    transform: scale(1.06);
}

.wccp-product-info {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.wccp-product-name {
    font-size: 0.92em;
    font-weight: 600;
    margin: 0;
    color: #1a1a1a;
    line-height: 1.4;
}

.wccp-product-sku {
    font-size: 0.75em;
    color: #999;
}

.wccp-product-price {
    font-size: 1em;
    font-weight: 700;
    color: #222;
    margin-top: auto;
    padding-top: 6px;
}

.wccp-stock-badge {
    display: inline-block;
    font-size: 0.7em;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.wccp-stock-badge.in-stock    { background: #e8f5e9; color: #2e7d32; }
.wccp-stock-badge.out-of-stock { background: #fce4ec; color: #c62828; }

.wccp-add-to-cart {
    display: block;
    margin: 0 14px 14px;
    padding: 10px;
    background: #222;
    color: #fff !important;
    text-align: center;
    border-radius: 6px;
    font-size: 0.82em;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
    border: none;
}

.wccp-add-to-cart:hover { background: #000; }

/* ── Βέλη πλοήγησης ── */
.wccp-nav {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 1.5em;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    color: #333;
    padding: 0;
}

.wccp-nav:hover:not(:disabled) {
    background: #222;
    color: #fff;
    border-color: #222;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wccp-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ── Dots ── */
.wccp-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.wccp-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.wccp-dot.active {
    background: #222;
    transform: scale(1.3);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .wccp-slide {
        flex: 0 0 calc((100% - 20px) / 2);
    }
    .wccp-slider-track { gap: 12px; }
}

@media (max-width: 480px) {
    .wccp-slide {
        flex: 0 0 80%;
    }
}
