/* Variation Attribute Buttons */
.attribute-group {
    margin-bottom: 20px;
}

.attribute-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.attribute-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.attribute-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 60px;
    text-align: center;
}

.attribute-btn:hover {
    border-color: #888;
    background: #f9f9f9;
}

.attribute-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 2px 4px rgba(15, 58, 130, 0.2);
}

.attribute-btn.disabled {
    /* opacity: 0.6; */
    cursor: not-allowed;
    background: #fdfdfd;
    color: #bbb;
    border-color: #eee;
    position: relative;
    /* overflow: hidden; */
    /* REMOVED: This was hiding the tooltip */
    pointer-events: auto;
    /* Enable for tooltip hover */
}

/* Custom Tooltip for Disabled Buttons */
.attribute-btn.disabled:hover::before {
    content: "Not Available";
    position: absolute;
    bottom: 125%;
    /* Higher to avoid overlap */
    left: 50%;
    transform: translateX(-50%);
    background: #101010;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.2;
    white-space: nowrap;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.attribute-btn.disabled:hover::after {
    content: "";
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(51, 51, 51, 0.95);
    z-index: 9999;
    pointer-events: none;
}

.attribute-btn.disabled .slash-line {
    /* Moving slash to a child element to allow overflow:visible for tooltip */
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top right, transparent calc(50% - 1px), #ccc, transparent calc(50% + 1px));
    pointer-events: none;
}
