.product-nav-wrapper {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
    gap: 12px;
}

.product-nav-wrapper.left {
    justify-content: flex-start;
}

.product-nav-wrapper.right {
    justify-content: flex-end;
}

.product-nav-wrapper.center {
    justify-content: center;
}

.product-nav-wrapper.fullwidth {
    justify-content: space-between;
}

.product-nav-wrapper .nav-link {
    display: inline-flex;
    align-items: center;
    position: relative;
    text-align: left;
}

.product-nav-wrapper .nav-link .hover-box {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    background-color: #ffffff;
    display: none;
    transition: all 0.2s;
    text-align: center;
    width: 150px; /* Increased width for better display */
    margin-bottom: 14px;
    border: 1px solid #cccccc;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.product-nav-wrapper .nav-link .hover-box .nav-product-image {
    margin-bottom: 5px;
    max-width: 100%;
    height: auto;
}

.product-nav-wrapper .nav-link .hover-box .nav-product-name {
    margin: 0;
    font-weight: normal;
    font-size: 12px;
    line-height: 1.4;
}

/* Arrow for hover box */
.product-nav-wrapper .nav-link .hover-box:before {
    content: "";
    border-style: solid;
    border-width: 7px;
    border-color: #cccccc transparent transparent transparent; /* Match border color */
    display: block;
    height: 0;
    width: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.product-nav-wrapper .nav-link .hover-box:after {
    content: "";
    height: 0;
    width: 0;
    border-style: solid;
    border-width: 6px;
    border-color: #ffffff transparent transparent transparent;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.product-nav-wrapper .nav-link:hover .hover-box {
    display: block;
}

.product-nav-wrapper .nav-link .nav-product-image-block {
    display: none; /* Hide inline image block if we only want it on hover */
}

.product-nav-wrapper .nav-link .nav-product-info {
    display: inline-block;
    vertical-align: middle;
}

.product-nav-wrapper .nav-link .nav-product-info .nav-product-name {
    display: none; /* Hide inline product name if we only want it on hover */
}

.product-nav-wrapper .nav-link .action.primary {
    white-space: nowrap;
}

