.ca-product-navigation {
    position: relative;
    z-index: 45;
}

.ca-product-navigation__link {
    position: fixed;
    top: 50%;
    display: flex;
    align-items: center;
    color: #111827;
    text-decoration: none;
    transform: translateY(-50%);
}

.ca-product-navigation__link:hover,
.ca-product-navigation__link:focus-visible {
    color: var(--ca-primary, #111827);
}

.ca-product-navigation__link--previous {
    left: 0;
}

.ca-product-navigation__link--next {
    right: 0;
}

.ca-product-navigation__arrow {
    position: relative;
    z-index: 2;
    display: flex;
    width: 42px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
}

.ca-product-navigation__link--previous .ca-product-navigation__arrow {
    border-left: 0;
    border-radius: 0 var(--ca-btn-radius, 4px) var(--ca-btn-radius, 4px) 0;
}

.ca-product-navigation__link--next .ca-product-navigation__arrow {
    order: 2;
    border-right: 0;
    border-radius: var(--ca-btn-radius, 4px) 0 0 var(--ca-btn-radius, 4px);
}

.ca-product-navigation__arrow svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ca-product-navigation__preview {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    box-sizing: border-box;
    width: 360px;
    max-width: calc(100vw - 84px);
    min-height: 128px;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.14);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.ca-product-navigation__link--previous .ca-product-navigation__preview {
    left: 0;
    border-radius: 0 var(--ca-card-radius, 8px) var(--ca-card-radius, 8px) 0;
    transform: translate(-12px, -50%);
}

.ca-product-navigation__link--next .ca-product-navigation__preview {
    right: 0;
    border-radius: var(--ca-card-radius, 8px) 0 0 var(--ca-card-radius, 8px);
    flex-direction: row-reverse;
    transform: translate(12px, -50%);
}

.ca-product-navigation__link:hover .ca-product-navigation__preview,
.ca-product-navigation__link:focus-visible .ca-product-navigation__preview {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
}

.ca-product-navigation__preview img {
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    object-fit: contain;
    background: #f8fafc;
}

.ca-product-navigation__content {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.ca-product-navigation__label {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ca-product-navigation__name {
    display: -webkit-box;
    overflow: hidden;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

@media (max-width: 767px) {
    /* Fixed side controls obscure PDP content on narrow touch screens. */
    .ca-product-navigation {
        display: none;
    }

    .ca-product-navigation__arrow {
        width: 36px;
        height: 52px;
    }

    .ca-product-navigation__preview {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ca-product-navigation__preview {
        transition: none;
    }
}
