/* ── Product card: "variant available" trigger pill ─────────────────────── */
.product-variant-trigger {
    display: inline-flex;
    display: none !important;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    max-width: 140px;
    margin: 6px 0;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #e1ecff;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #0b0b0b;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-variant-trigger:hover {
    border-color: #3cb46e;
    box-shadow: 0 2px 8px rgba(60, 180, 110, 0.15);
}

.product-variant-trigger i {
    font-size: 11px;
    color: #6c757d;
}

/* ── Variant popup — same overlay/content pattern as the track-order modal ── */
.product-variant-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.product-variant-modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.product-variant-modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid #e1ecff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f6f9ff;
    border-radius: 10px 10px 0 0;
}

.product-variant-modal-header h3 {
    margin: 0;
    color: #0b0b0b;
    font-weight: 700;
    font-size: 18px;
}

.product-variant-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.product-variant-modal-close:hover {
    color: #e76026;
}

.product-variant-modal-body {
    padding: 18px 22px;
}

.product-variant-loading,
.product-variant-empty {
    text-align: center;
    color: #6c757d;
    padding: 30px 0;
    font-size: 14px;
}

.product-variant-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 12px;
    background: #f6f9ff;
    border: 1px solid #e1ecff;
    border-radius: 10px;
    transition: border-color 0.2s ease;
}

.product-variant-row:last-child {
    margin-bottom: 0;
}

.product-variant-row.is-current {
    border-color: #3cb46e;
    background: #f0faf3;
}

.product-variant-save-badge {
    position: absolute;
    top: -8px;
    right: 10px;
    background: rgb(22, 163, 74);
    color: rgb(255, 255, 255);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    line-height: 14px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(59, 91, 219, 0.35);
}

.product-variant-row-img {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e1ecff;
    background: #fff;
}

.product-variant-row-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-variant-row-info {
    flex: 1 1 auto;
    min-width: 0;
}

.product-variant-row-size {
    font-weight: 700;
    font-size: 14px;
    line-height: 15px;
    color: #0b0b0b;
}

.product-variant-row-name {
    font-size: 12px;
    color: #6c757d;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-variant-row-price {
    flex-shrink: 0;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    color: #0b0b0b;
    min-width: 70px;
}

.product-variant-row-price .product-variant-price-old {
    display: block;
    font-weight: 400;
    font-size: 11.5px;
    color: #adb5bd;
    text-decoration: line-through;
}

.product-variant-row-action {
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .product-variant-row {
        flex-wrap: wrap;
    }

    .product-variant-row-action {
        margin-left: 70px;
    }
}
